Skip to content

4.6.0

Latest

Choose a tag to compare

@o-nnerb o-nnerb released this 30 Nov 18:26
· 10 commits to main since this release
Immutable release. Only release title and notes can be modified.
eb22471

What's Changed

  • Fix disk-cache overflow, validate SPKI pins, reject URL delimiters in BaseURL host by @o-nnerb in #462
  • Require the final chunk of an encrypted cache entry before reading it by @o-nnerb in #464
  • Fix cache freshness and revalidation (304 renewal, invalid Expires, Age, revalidation race) by @o-nnerb in #463
  • Strip Host on cross-origin redirects and validate headers on .urlSession like .nio by @o-nnerb in #465
  • TLS: reject empty pinning, and make SecureConnection merge with earlier declarations by default by @o-nnerb in #466
  • Encrypted cache follow-up: refuse bodies without a final chunk, bind each body to its key by @o-nnerb in #468
  • Cache follow-up: keep concurrent revalidations from losing the entry, let max-age win over Expires by @o-nnerb in #467
  • URLSession pool: stop tracking unpoolable clients, and refuse work on a closed client by @o-nnerb in #473
  • mTLS identities: count Keychain items by the real key, validate the pair, report multi-certificate chains by @o-nnerb in #474
  • Small fixes: SSE event/retry, 32-bit Int traps, readdir errors, BackgroundDownloads fail-closed and docs by @o-nnerb in #472
  • Validate hosts, methods and cURL input: FlexibleURL/URLOverride host, HTTP method token, http(s)-only cURL by @o-nnerb in #469
  • Bound the cache revalidation by the read timeout, and tolerate Content-Encoding on bodiless responses on .nio by @o-nnerb in #471
  • Resumable uploads: stop the tight retry loop, keep the upload URL as written, refuse tus with Content-Encoding by @o-nnerb in #470
  • Configured, queries, dates: fail loudly on bad values, keep what the caller wrote by @o-nnerb in #475
  • Update watchOS platform version to v9 by @o-nnerb in #476
  • Mechanical follow-ups: AcceptOnlyContentType empty set, 32-bit Int traps in buffers, bare valueless query in FlexibleURL by @o-nnerb in #477
  • URLSessionClient lifecycle tests, and let a request cancelled in the connection queue leave it by @o-nnerb in #478
  • Fix three flaky CI failures: wait for the server before looking for a stall, and downgrade a held-lock warning on a stalled runner by @o-nnerb in #479
  • NIO: follow a redirect that names a Content-Encoding without a body, and report the URL a redirected response came from by @o-nnerb in #480
  • TransferServer: list requests in arrival order, and wait for all three in the restart test by @o-nnerb in #481
  • Update swift-async-stream to 3.0.2 and use AsyncCancellableSemaphore for the connection limit by @o-nnerb in #483
  • ClientManager sweep: do not trap when an item is stamped after the sweep started by @o-nnerb in #485
  • Depend on the request-dl fork of swift-nio-extras (1.35.3) by @o-nnerb in #489
  • Tests: let PoolLagMonitor see a frozen process, so a held-lock report becomes a warning by @o-nnerb in #491
  • URLOverride: apply the rules to every redirect hop, on .nio and .urlSession by @o-nnerb in #487
  • Tests: NothingToDecode's canary now documents the fixed decompressor by @o-nnerb in #493
  • Image views: setImage clears the previous image by default, with an opt-in to keep it by @o-nnerb in #486
  • mTLS: build the client identity in memory with SecIdentityCreate, and stop storing it in the Keychain by @o-nnerb in #482
  • Cache: do not store a .urlSession response nothing proves complete; add an opt-in Range probe by @o-nnerb in #488
  • Tests: PoolLagMonitor also probes utility and background priority by @o-nnerb in #498
  • Run the work a caller waits for at the caller's priority, not a fixed low one by @o-nnerb in #500
  • Tests: cover the cache completeness probe's request and failure paths by @o-nnerb in #501
  • Decode a custom Content-Encoding after a background download finishes by @o-nnerb in #494
  • Download streams: an immutable Chunk instead of a locked buffer (about 65% fewer allocations) by @o-nnerb in #497
  • Cover the lines #497 left untested, and drop an unused Chunk initializer by @o-nnerb in #502
  • Proxy: SOCKS5 username/password authentication (.nio and .urlSession) by @o-nnerb in #499
  • Announce only custom algorithms when .urlSession takes over Accept-Encoding by @o-nnerb in #503
  • Add an opt-in CookieJar for sessions by @o-nnerb in #495
  • CookieJar: 32-bit Expires trap, trailing-dot host, Cookie header cap, Set-Cookie split by @o-nnerb in #510
  • Redirects: strip credentials against the final URL after a URLOverride rewrite by @o-nnerb in #507
  • .urlSession: connection slot, cancellation and pool sweep fixes from the review by @o-nnerb in #508
  • Cache: fix the findings of the post-4.5.8 review, including a watchOS build break by @o-nnerb in #505
  • Streams: background download, resumable upload and 32-bit file size fixes from the review by @o-nnerb in #509
  • TLS: empty TrustRoots fails closed, cipherSuites merge order, fork documentation by @o-nnerb in #506
  • Make maximumConcurrentConnections a limit of the whole session by @o-nnerb in #513
  • ci: use the shared workflow for the URLSession-only tests and the watchOS device build by @o-nnerb in #516
  • Fix the compiler warnings the CI reports by @o-nnerb in #519
  • .nio: end an exchange AsyncHTTPClient failed without telling the delegate, instead of hanging by @o-nnerb in #518
  • Require the async-http-client fork 1.42.0 by @o-nnerb in #521
  • CI: say "job" instead of "leg" in the workflow comments by @o-nnerb in #531
  • Streams/transport review: early response tests, native encodings, docs by @o-nnerb in #522
  • Tests: wait for every connection, restore the global assertion override, stronger probe and SOCKS checks by @o-nnerb in #525
  • Require the async-http-client fork 1.42.2 and the swift-nio-extras fork 1.35.5 by @o-nnerb in #530
  • Fix the TLS-PROXY findings of the post-4.5.8 review by @o-nnerb in #523
  • Fix the cache review findings (generations, unfinished writes, renewals, keys) by @o-nnerb in #526
  • Don't count the wait for a connection slot as idle time of Timeout(.read) by @o-nnerb in #527
  • CI: enable the Xcode compilation cache for the Apple tests by @o-nnerb in #534
  • Require the async-http-client fork 1.42.3 by @o-nnerb in #533
  • Fix the COOKIES-FEATURES findings of the post-4.5.8 review by @o-nnerb in #528
  • Don't put an image back in memory when it was removed while its load ran by @o-nnerb in #535
  • Make the reconnection test of Timeout(.read) not depend on a suspended download noticing its lost connection by @o-nnerb in #538
  • Use the Lock of swift-async-stream instead of NSLock by @o-nnerb in #539
  • Redirects: align the executors, keep the trailing slash of URLOverride paths by @o-nnerb in #524
  • Add CacheIdentity to tell accounts apart by an identity, not by credentials by @o-nnerb in #536
  • Hide the URL in the directory name of an encrypted cache entry (M6, stacked on #526) by @o-nnerb in #532
  • Docs: say what shares the cap of maximumConcurrentConnections by @o-nnerb in #540
  • Cache: refuse an encryption key under 16 bytes, and restore only a finished entry when a write fails by @o-nnerb in #541
  • Redirects: refuse hiddenOnRedirect in background downloads, align 304/305 and Location userinfo by @o-nnerb in #543
  • Resumable upload: retry a PATCH answered 408, 425, 429 or 5xx, and check the length by @o-nnerb in #544
  • Images: take an unconfirmed image off the view when the request fails, keep URL and task loads apart by @o-nnerb in #542
  • Cache: no redirected response under the original URL, HMAC for CacheIdentity with a key, 304 replaces revalidation directives by @o-nnerb in #546
  • Percent-decode HTTP proxy credentials, guard a 32-bit overflow, fix docs that did not match the code by @o-nnerb in #545
  • Resumable upload: hand over the application's answer, keep only the upload server's, send the interop version, and check what can be sent by @o-nnerb in #547
  • CookieJar eviction and host name limits, image views that go back to the right image, and tests that no longer fail under load by @o-nnerb in #548
  • Redirects: follow 20 by default, refuse ports that do not fit, default User-Agent on NIO, and background downloads that say what they ignore by @o-nnerb in #549
  • Proxy URLs: refuse https and unknown schemes, honor a value with no scheme, decode credentials once, and keep secrets out of cURL errors by @o-nnerb in #550
  • Cache: conditional GET for stale responses, a 304 that replaces what it carries and keeps the execution going, and a warning about mixing the forks with upstream by @o-nnerb in #551
  • Docs: the fork warning's order sentence, and four texts that did not match the code by @o-nnerb in #552
  • Tests: the cache lifecycle suite no longer fails when the runner is starved by @o-nnerb in #553
  • Docs: split the long paragraphs of the DocC articles and the README, and fix the build and DocC warnings by @o-nnerb in #554

Full Changelog: 4.5.8...4.6.0