239 Commits

Author SHA1 Message Date
Gus Cairo
f3cce7f10c Rename some missing CertificateDescription arguments 2025-05-07 16:26:13 +01:00
Gus Cairo
516c61c02f Rename PrivateKeyDescription to PrivateKeySource 2025-05-07 16:25:41 +01:00
Gus Cairo
fa65c5b1cb Rename CertificateDescription to CertificateSource 2025-05-07 16:21:32 +01:00
Gus Cairo
2f52c356af PR changes 2025-05-07 14:32:05 +01:00
Gus Cairo
8fbba2dd52 Add logging when reloading fails 2025-05-07 11:30:55 +01:00
Gus Cairo
eb78ed3992 Format 2025-05-07 10:58:27 +01:00
Gus Cairo
9e3d133b12 Add missing import 2025-05-07 10:33:17 +01:00
Gus Cairo
47d25bbfc8 Annotate setCertificateReloader with @discardableResult 2025-05-07 10:33:17 +01:00
Gus Cairo
6eb1e0c930 Fix availability guards 2025-05-07 10:33:17 +01:00
Gus Cairo
97712101f0 Formatting 2025-05-07 10:33:17 +01:00
Gus Cairo
ed45e53610 Add docs and a new TLSConfig init 2025-05-07 10:33:17 +01:00
Gus Cairo
2fd8dca7b1 Use AsyncTimerSequence to handle graceful shutdown properly 2025-05-07 10:33:17 +01:00
Gus Cairo
e295c15294 Add throwing init 2025-05-07 10:33:17 +01:00
Gus Cairo
ca5962e07b Rename targets and move around some code
bla
2025-05-07 10:33:17 +01:00
Gus Cairo
ef889248dc Add missing import 2025-05-07 10:33:17 +01:00
Gus Cairo
452b1931a5 Fix docs 2025-05-07 10:33:17 +01:00
Gus Cairo
76a3dc5f2f Add missing import 2025-05-07 10:33:17 +01:00
Gus Cairo
c9402e9816 Format 2025-05-07 10:33:17 +01:00
Gus Cairo
65a4600b11 PR comments 2025-05-07 10:33:17 +01:00
Gus Cairo
ca8e42a386 Add init using Duration 2025-05-07 10:33:17 +01:00
Gus Cairo
b8eb9fb16e Fix imports 2025-05-07 10:33:17 +01:00
Gus Cairo
09520a7844 Make sslContextConfigurationOverride async 2025-05-07 10:33:17 +01:00
Gus Cairo
222a050c19 Add more docs 2025-05-07 10:33:17 +01:00
Gus Cairo
617d1ac648 Fix broken imports 2025-05-07 10:33:17 +01:00
Gus Cairo
0dae5b23e5 Format 2025-05-07 10:33:17 +01:00
Gus Cairo
744d803c1b Add conformance to ServiceLifecycle/Service 2025-05-07 10:33:17 +01:00
Gus Cairo
7a755d74e0 Refactor some stuff 2025-05-07 10:33:17 +01:00
Gus Cairo
6b6a5b5e10 Remove unneeded imports 2025-05-07 10:33:17 +01:00
Gus Cairo
554f22e189 Add a TimedCertificateReloader 2025-05-07 10:33:17 +01:00
Rick Newton-Rogers
0fc472ba34
Drop Swift 5.9 (#270)
Motivation:

Swift 5.9 is no longer supported, we should bump the tools version and
remove it from our CI.

Modifications:

* Bump the Swift tools version to Swift 5.10
* Remove Swift 5.9 jobs where appropriate in main.yml, pull_request.yml

Result:

Code reflects our support window.
2025-05-07 05:52:53 +00:00
Rick Newton-Rogers
f1f6f77219
Enable Swift 6.1 jobs in CI (#268)
Motivation:

Swift 6.1 has been released, we should add it to our CI coverage.

Modifications:

Add additional Swift 6.1 jobs where appropriate in main.yml,
pull_request.yml

Result:

Improved test coverage.
1.26.0
2025-04-14 10:40:54 +01:00
Marc Prud'hommeaux
8526b90bc4
Ignore return value of signal() on Android (#266)
See https://github.com/apple/swift-nio/pull/3181 and
https://github.com/apple/swift-nio/issues/3180
2025-04-09 13:16:39 +00:00
George Barnett
a0189d045c
Strict concurrency for NIOResumableUpload (#265)
HTTPResumableUpload contains the core logic. It uses an event loop to
synchronize its state internally. Some methods are safe to call from off
of that event loop and have been moved to a new sendable view. The
HTTPResumableUpload type is marked as explicitly not sendable.

As such, most other types now hold on to the sendable view and use that
as the interface to HTTPResumableUpload.

HTTPResumableUploadChannel must be sendable (it's a Channel) and now
uses safe abstractions (where possible).
2025-04-08 09:21:01 +01:00
George Barnett
b6b5e1133f
Strict concurrency for NIONFS3 and NIONFS3Tests (#264) 2025-04-07 15:09:17 +01:00
Rick Newton-Rogers
96bce550c6
Enable macOS CI on pull requests (#258)
Motivation:

* Improve test coverage

Modifications:

Enable macOS CI to be run on pull request commits and make the use of
the nightly runner pool for main.yml jobs explicit.

Result:

Improved test coverage.
2025-04-02 13:08:30 +00:00
George Barnett
cf3de22478
Strict concurrency for NIOExtrasPerformanceTester (#263) 2025-04-02 12:26:48 +00:00
George Barnett
1a16877a1b
Strict concurrency for HTTPServerWithQuiescingDemo (#262) 2025-04-02 13:20:46 +01:00
George Barnett
c92af9d4ef
Strict concurrency for HTTPTypes and friends (#259) 2025-04-01 15:44:08 +00:00
George Barnett
7241067079
Strict concurrency for NIOHTTPResponsiveness and NIOHTTPResponsivenessTests (#261) 2025-04-01 15:32:33 +00:00
George Barnett
dbfdade581
Strict concurrency for NIOWritePCAPDemo, NIOWritePartialPCAPDemo and NIOSOCKSClient (#260) 2025-04-01 15:27:24 +00:00
George Barnett
dc6987e77e
Strict concurrency for NIOSOCKS (#256) 2025-04-01 14:33:46 +00:00
George Barnett
0447b0359e
Strict concurrency for NIOHTTPCompression (#257) 2025-04-01 15:29:54 +01:00
George Barnett
20c59b2d64
Strict concurrency for NIOExtras and NIOExtrasTests (#254) 2025-03-31 11:53:06 +01:00
Rick Newton-Rogers
d8a178ea78
Enable macOS CI on merge to main and daily timer (#255)
Motivation:

* Improve test coverage
* Check test pass/fail status
* Monitor CI throughput

Modifications:

Enable macOS CI to be run on all merges to main and on a daily timer.

Result:

Improved test coverage run out-of-band at the moment so we can get a
feeling for if any changes need to be made in the repo or in the CI
pipelines to ensure timely and stable checks.
2025-03-28 14:29:37 +00:00
Honza Dvorsky
ae4d6b4b9a
Add a missing import to CNIOLinux (#251)
### Motivation:

Stricter import rules mean that using the `sin_addr` property on Linux
requires the explicit CNIOLinux import.

### Modifications:

Added the missing import.

### Result:

Fixes a CI diagnostic.
2025-03-11 12:10:01 +00:00
Rick Newton-Rogers
5308c07e83
Only apply standard swift settings on valid targets (#250)
Only apply standard swift settings on valid targets. The current check
ignores plugins but that is not comprehensive enough.
2025-03-07 15:06:05 +00:00
Rick Newton-Rogers
395a46efbb
Rename nightly_6_1 params to nightly_next (#249)
Rename nightly_6_1 params to nightly_next; see
https://github.com/apple/swift-nio/pull/3122
2025-03-03 14:45:37 +00:00
Guoye Zhang
00f3f72d2f
Eliminate hasPrefix usage for pseudo HTTP header names (#248)
UTF8 view is faster than hasPrefix

rdar://144395951
1.25.0
2025-02-15 18:14:17 -08:00
Rick Newton-Rogers
926c3e19e7
Avoid integer overrun in NIOHTTPResponsiveness (#247)
We use 8*10^9 in `NIOHTTPResponsiveness` however this number will
overrun the integer size on platforms with 32-bit pointer-width such as
watchOS.

This change drops down to use 1*10^9 on such platforms.
2025-01-31 16:00:41 +00:00
Rick Newton-Rogers
c96e65891d
CI use 6.1 nightlies (#246)
CI use 6.1 nightlies now that Swift development is happening in the 6.1
branch
2025-01-30 09:45:57 +00:00