Repository navigation
Releases
Releases · AsyncHttpClient/async-http-client
AHC v3.0.15 Release
What's Changed
- Upgrade async-http-client to version 3.0.14 by @hyperxpro in #2353
- Resolve test DNS in-process, drop external tag by @hyperxpro in #2354
- Bump the dependencies group with 3 updates by @dependabot[bot] in #2355
- Bump the actions group with 2 updates by @dependabot[bot] in #2365
- Bump the dependencies group with 29 updates by @dependabot[bot] in #2364
- Inflate HTTP/1.1 gzip and deflate without an EmbeddedChannel by @pavel-ptashyts in #2357
- fix(netty): fail a capped inflate buffer only once it is full, as Netty 4.2.19 does by @mkurz in #2366
- fix(netty): detach a replayed request's old channel before completing its body control by @mkurz in #2367
- test: let the auto-read-off replay test accept a chunk delivered before the replay by @mkurz in #2368
- fix(netty): stop inflating a suspended HTTP/1.1 response by @mkurz in #2362
- feat: add ResponseBodyControl.execute to decide in sequence with body delivery by @mkurz in #2359
- fix(netty): keep caller Cookie headers as written on redirects and auth retries by @mkurz in #2360
- fix(netty): never let a queued suspend override a later resume by @mkurz in #2361
- Update Maven settings with repository origins by @hyperxpro in #2374
- Skip rebuilding the path in Uri.toRelativeUrl by @pavel-ptashyts in #2373
- Encode setBody(String) bodies with String.getBytes by @pavel-ptashyts in #2371
- Skip redundant atomics on response completion by @pavel-ptashyts in #2372
- Keep the hop to a proxy on HTTP/1.1 by @mkurz in #2369
- Upgrade Netty to 4.2.20.Final by @mkurz in #2375
- Set request header values without per-call copies by @pavel-ptashyts in #2380
- Fail a compressed body that is cut off by @mkurz in #2376
- Cut response body control cost on HTTP/1.1 by @pavel-ptashyts in #2379
- Re-arm an early read timeout for what is left by @pavel-ptashyts in #2377
- Stream the response body without copying it by @pavel-ptashyts in #2378
- Drop undecodable codings from Accept-Encoding by @pavel-ptashyts in #2381
- Serve the read timeout from the request timeout's timer entry by @pavel-ptashyts in #2382
- Release a chunk when the request body read fails by @pavel-ptashyts in #2383
- Add stored cookies without rebuilding the request by @pavel-ptashyts in #2384
- Encode form and digest input without CharBuffer by @pavel-ptashyts in #2385
- Drop held input of a body cut off by the close by @mkurz in #2386
- Upgrade zstd-jni to 1.5.7-26 by @mkurz in #2388
- Retire HTTP/2 connections at connectionTTL by @hyperxpro in #2387
- Decide read timeout arming on the nano deadline by @pavel-ptashyts in #2391
- Keep the raw URI when adding a Range header by @pavel-ptashyts in #2393
- Drop empty pool partitions and string-free composite keys by @pavel-ptashyts in #2390
- Drop the fallback for Netty before 4.2.17 by @mkurz in #2396
- Wait for demand after the server closes by @mkurz in #2394
- Upgrade Netty to 4.2.21.Final by @mkurz in #2395
- Send headers of later requests after 100 Continue by @mkurz in #2399
- Do not resend a consumed multipart stream part by @mkurz in #2398
- Add least-connections load balancing across resolved addresses by @hyperxpro in #2400
- Cache the pool key identity digest per realm by @pavel-ptashyts in #2389
- Drop a wildcard from a filtered Accept-Encoding by @pavel-ptashyts in #2392
- Stop stream bodies at their declared length by @mkurz in #2401
- Close a pooled connection when building the request fails by @mkurz in #2403
- Keep file bodies at the length they announce by @mkurz in #2404
- Fail InputStreamBodyGenerator's body on read errors and stop it at its length by @mkurz in #2402
- Give the DNS test resolver no search domains by @mkurz in #2405
- Follow the proxy selected for a redirect or replay by @hyperxpro in #2408
- Rebind store cookies when a filter replays or retargets by @hyperxpro in #2409
- Keep CONNECT and proxy login out of established tunnels by @hyperxpro in #2410
- Reject a Content-Length that contradicts the body by @mkurz in #2407
Security Advisory
GHSA-4hmg-q5cx-jgrr
GHSA-3v4m-mj5j-mrmq
GHSA-j7jv-g783-2vrm
Full Changelog: async-http-client-project-3.0.14...async-http-client-project-3.0.15
AHC v3.0.14 Release
What's Changed
- fix(netty): fail fast when InputStream body cannot be reset by @arimu1 in #2312
- Arm request timeouts on an event loop by @pavel-ptashyts in #2313
- Make TimeoutsHolder.start idempotent by @hyperxpro in #2319
- Bound an exchange by one request timeout by @pavel-ptashyts in #2314
- Add response body flow control by @mkurz in #2318
- fix(netty): preserve all redirect body types by @mkurz in #2316
- Bump the dependencies group with 5 updates by @dependabot[bot] in #2323
- Bump actions/setup-java from 5.6.0 to 6.0.0 in the actions group by @dependabot[bot] in #2324
- fix(netty): preserve QUERY across redirects by @mkurz in #2317
- fix(netty): preserve non-POST redirect methods by @mkurz in #2325
- Dependency Updates by @hyperxpro in #2327
- Provide an opt-in zero-copy response body view by @pavel-ptashyts in #2322
- Fix response body accessors for bodyless and rebuilt responses by @hyperxpro in #2329
- Tell the handler about a failure before completing its future by @hyperxpro in #2328
- Mark an HTTP/2 connection instead of looking it up by @pavel-ptashyts in #2320
- Reject invalid HTTP/2 settings when the client is built by @hyperxpro in #2331
- Fail fast when the scheme rules out HTTP/2 by @hyperxpro in #2334
- Cache Maven distribution and dependencies in CI by @hyperxpro in #2335
- Bump actions/setup-java from 6.0.0 to 6.0.1 in the actions group by @dependabot[bot] in #2336
- Bump the dependencies group with 5 updates by @dependabot[bot] in #2337
- Add opt-in refusals for downgrade and body replay by @hyperxpro in #2333
- Reject fully qualified names and wildcard imports by @hyperxpro in #2338
- Keep credentials out of logs and exception messages by @hyperxpro in #2339
- Detect transport of external event loop group by IoHandler by @hyperxpro in #2340
- Fix redirect and HTTP/2 follow-up defects by @hyperxpro in #2341
- Keep connection-authenticated sockets off the HTTP/2 registry by @hyperxpro in #2342
- Drop RepeatedIfExceptionsTest and fix the races it hid by @hyperxpro in #2343
- Test cookie expiry with an injected clock by @hyperxpro in #2344
- Fix the defects the rerunner removal uncovered by @hyperxpro in #2345
- Send proxy custom headers only to the proxy by @hyperxpro in #2346
- Attach the write listener before writing the request by @hyperxpro in #2347
- Stop redirects reusing cookies from before the response by @hyperxpro in #2348
- Close with 1009 when a WebSocket message is too big by @hyperxpro in #2352
- Fix/auth retry stale cookies by @hyperxpro in #2351
- Treat Domain=. as a host-only cookie by @hyperxpro in #2350
- Keep a caller's cookie when the store refuses Set-Cookie by @hyperxpro in #2349
Security Advisory
GHSA-v2j5-22fr-j62r
GHSA-qjr7-w8pj-pmv9
GHSA-x8v2-478q-2hvg
GHSA-p2jm-6hj6-9rjg
GHSA-2jwh-9rmr-j4xf
New Contributors
Full Changelog: async-http-client-project-3.0.13...async-http-client-project-3.0.14
AHC v3.0.13 Release
Security
- GHSA-rqf5-2wxv-rjf4 - Digest challenge without a usable nonce downgrades to Basic and sends the password in cleartext
- GHSA-jmqq-x5g9-9p2w - Replay to a different host sends the original host's request and credentials to the new host
- GHSA-vvp4-63h8-v5pm - Connection pool key omits the authenticated principal, so an NTLM or Negotiate connection is reused across identities
- GHSA-f9m8-cv68-674w - Cookie Domain attribute is not checked against the public suffix list, so a cookie can be set for co.uk
- GHSA-qhv6-3pmh-95q4 - Digest mutual authentication is switched off by a peer offering qop=auth-int
Behaviour changes
- A Digest challenge carrying no nonce now selects Digest rather than Basic. Such an exchange previously appeared to work because the client answered in Basic, and it will now fail. It was sending the password in the clear.
- A server offering
qop="auth-int"and nothing else now falls back to the qop-less digest of RFC 2069, which has weaker replay protection. The client logs a warning when this happens. Realm.Builder.matchParamkeeps a backslash that precedes any character other than a quote or another backslash. This repairs a 3.0.12 regression that corruptedDOMAIN\UserstoDOMAINUsersand broke Digest against those realms.- NTLM and Negotiate connections are pooled per principal, so an application authenticating as several identities against one host holds more connections than before.
- A cookie whose
Domainnames a public suffix is refused. A host whose own name is a public suffix, such as the short names Docker Compose and Kubernetes hand out, can still set a cookie for itself.
Known issues
- Over HTTP/2, an intercepted 401 or a redirect completes the caller's future exceptionally even though the exchange succeeds on the wire. Use HTTP/1.1 where authentication or redirects are involved.
AHC v3.0.12 Release
What's Changed
- Release v3.0.11 by @hyperxpro in #2198
- Reduce per-request allocation in ThreadSafeCookieStore.get() by @hyperxpro in #2201
- escape quote and crlf in multipart content-disposition values by @jmestwa-coder in #2203
- Avoid Uri reallocation in UriEncoder.encode() on the no-op path by @hyperxpro in #2204
- Reuse a per-thread UriParser scratch to avoid per-parse allocation by @hyperxpro in #2205
- Intern known request header names to static AsciiString by @hyperxpro in #2206
- Match HTTP/2 content-encoding with AsciiString constants instead of toLowerCase by @hyperxpro in #2207
- Improve CI Release Workflow by @hyperxpro in #2208
- Fall back to NIO instead of throwing when no native transport is available by @hyperxpro in #2209
- fail websocket handshake on invalid sec-websocket-accept by @jmestwa-coder in #2211
- Localize tests that depended on public endpoints by @hyperxpro in #2215
- [Performance] Raise default HTTP/2 initial window size to 16 MiB by @hyperxpro in #2213
- Add LoadBalance.ROUND_ROBIN for per-request IP round-robin by @pavel-ptashyts in #2202
- Bump the dependencies group with 5 updates by @dependabot[bot] in #2222
- Bump actions/checkout from 6 to 7 in the actions group by @dependabot[bot] in #2223
- use SecureRandom for digest auth cnonce by @jmestwa-coder in #2220
- skip origin Authorization on CONNECT proxy request by @madib06ops in #2234
- escape quoted-string params in Digest Authorization header by @madib06ops in #2236
- stop config realm leaking to a cross-origin redirect target by @jmestwa-coder in #2224
- fail SCRAM exchange on invalid ServerSignature by @madib06ops in #2235
- normalize the scheme case in the Uri constructor by @madib06ops in #2239
- Fix LICENSE file for Apache 2.0 by @hyperxpro in #2242
- Enable HTTPS endpoint identification in JsseSslEngineFactory by @hyperxpro in #2243
- Reject CR/LF in raw multipart part-header fields by @hyperxpro in #2244
- Read InputStream bodies straight into the buffer, no staging array by @pavel-ptashyts in #2233
- Bind origin Kerberos/SPNEGO token to the origin service, not the proxy by @hyperxpro in #2245
- Avoid per-connect lock on shared Bootstrap options map (#2218) by @pavel-ptashyts in #2219
- Make idle-channel pool cleaner reap in a single O(n) pass by @pavel-ptashyts in #2225
- Mirror Netty option-failure semantics in applyChannelOptions by @hyperxpro in #2247
- Round robin issue (#2214) by @pavel-ptashyts in #2217
- Release the round-robin HTTP/2 permit when a connection starts draining by @hyperxpro in #2248
- Harden the O(n) idle-pool reap tests: stable idle window + kept-after-removed coverage by @hyperxpro in #2249
- Wait for a sibling HTTP/2 connection without blocking the caller thread by @pavel-ptashyts in #2227
- Generalize failed-IP cooldown across all LoadBalance modes and make it configurable by @pavel-ptashyts in #2221
- Never block the event loop acquiring a connection permit by @pavel-ptashyts in #2226
- Harden the HTTP/2 connection-waiter registry against waiter failures and shutdown races by @hyperxpro in #2251
- No blocking acquire on event loop by @hyperxpro in #2252
- Schedule the round-robin request timeout once, not twice by @pavel-ptashyts in #2229
- Harden failed-IP cooldown config and add DEFAULT-mode test by @hyperxpro in #2253
- Fail fast on empty round-robin address resolution by @hyperxpro in #2254
- Signal STOP on the finishing multipart chunk, not an extra empty read by @pavel-ptashyts in #2232
- Reuse the per-request partition key instead of recomputing it by @pavel-ptashyts in #2231
- Document that BodyState.STOP may carry the final bytes by @hyperxpro in #2255
- Avoid the per-request rotation copy in round-robin address selection by @pavel-ptashyts in #2230
- Cap cookies retained per domain (RFC 6265 5.3) by @pavel-ptashyts in #2256
- Mark the round-robin RotatedView RandomAccess and cover its bounds check by @hyperxpro in #2257
- Add AI Agent Guidelines to AGENTS.md by @hyperxpro in #2268
- Support HTTP/2 after proxy CONNECT by @rampreeth in #2250
- strip userinfo from the absolute-form proxy request target by @madib06ops in #2258
- Avoid unused promise allocation in address resolution by @pavel-ptashyts in #2259
- Skip empty channel pool partitions during reap by @pavel-ptashyts in #2262
- use SecureRandom for the multipart boundary and websocket key by @madib06ops in #2282
- Avoid duplicate preemptive Digest hashing by @pavel-ptashyts in #2276
- Prune idle per-host connection semaphores by @pavel-ptashyts in #2277
- Optimize client stats collection by @pavel-ptashyts in #2270
- Intern common Train-Case header names by @pavel-ptashyts in #2266
- Guard per-host semaphore pruning against unbalanced releases by @hyperxpro in #2283
- Release throttle permits only once by @pavel-ptashyts in #2280
- Soften overstated complexity claim in stats javadoc by @hyperxpro in #2285
- Cache Basic auth header on Realm by @pavel-ptashyts in #2267
- Document Basic auth header caching, guard against stale copies by @hyperxpro in #2286
- Add regression tests for throttle permit release edge cases by @hyperxpro in #2287
- create the resumable index store with owner-only permissions by @madib06ops in #2281
- Avoid rebuilding clean query strings by @pavel-ptashyts in #2265
- Fix per-host connection permit leak on the connect path by @hyperxpro in #2288
- Use HPACK spelling for HTTP/2 compression by @pavel-ptashyts in #2271
- Redact sensitive headers from debug logs by @pavel-ptashyts in #2279
- Trim dead sensitive-logging wrappers and document scope by @hyperxpro in #2290
- Validate converted HTTP/2 headers and trailers by @pavel-ptashyts in #2275
- Bump io.netty:netty-codec-compression from 4.2.15.Final to 4.2.16.Final by @dependabot[bot] in #2292
- Bump io.netty:netty-codec-http from 4.2.15.Final to 4.2.16.Final by @dependabot[bot] in #2293
- Run HTTP/2 st...
AHC v2.16.1 Release
Security
- GHSA-3wp9-xfwm-rjjf - WebSocket proxy credentials sent to the origin server over a CONNECT tunnel
- GHSA-7grg-jcf7-rpmx - Unbounded HTTP/1.1 response decompression enables a decompression-bomb denial of service
- GHSA-cf59-3jcr-vfhw - Resumable download index store is created world-readable and follows a planted symlink
- GHSA-f8m2-889x-vw4x - Client-wide realm credentials re-sent to a cross-origin redirect target
- GHSA-f9m8-cv68-674w - Cookie Domain attribute is not checked against the public suffix list, so a cookie can be set for co.uk
- GHSA-jmqq-x5g9-9p2w - Replay to a different host sends the original host request and credentials to the new host
- GHSA-mfj3-87qq-382v - Digest authentication cnonce generated with a non-cryptographic random source
- GHSA-qpfv-56x8-xgx4 - URL userinfo credentials sent to the HTTP proxy in the request line
- GHSA-rqf5-2wxv-rjf4 - Digest challenge without a usable nonce downgrades to Basic and sends the password in cleartext
- GHSA-rwhr-j9rv-85f8 - WebSocket handshake continues after a failed Sec-WebSocket-Accept check
- GHSA-v9f2-7rw2-gr2x - Origin credentials sent in cleartext to a proxy that rejects the CONNECT
- GHSA-vvp4-63h8-v5pm - Connection pool key omits the authenticated principal, so an NTLM or Negotiate connection is reused across identities
- GHSA-x5w6-vm3f-pp6f - SOCKS proxy credentials sent to the origin server over plaintext HTTP
- GHSA-xr57-gcx8-52hf - Origin credentials sent to the proxy on the plaintext CONNECT request
Behaviour changes
- A Digest challenge carrying no nonce now selects Digest rather than Basic. Such an exchange previously appeared to work because the client answered in Basic, and it will now fail. It was sending the password in the clear.
- NTLM and Negotiate connections are pooled per principal, so an application authenticating as several identities against one host holds more connections than before.
- A cookie whose
Domainnames a public suffix is refused. A host whose own name is a public suffix, such as the short names Docker Compose and Kubernetes hand out, can still set a cookie for itself. - A
ResponseFilterthat replays onto a different host no longer carries the first origin's realm to the new one. A client-wide realm no longer follows a cross-host replay.
AHC v2.16.0 Release
What's Changed
- Backport: reject set-cookie domain that doesn't match the request host by @hyperxpro in #2199
Security Advisory
Full Changelog: async-http-client-project-2.15.0...async-http-client-project-2.16.0
AHC v3.0.11 Release
What's Changed
- Bump org.apache.tomcat.embed:tomcat-embed-core from 10.1.54 to 10.1.55 in /client by @dependabot[bot] in #2179
- Bump the dependencies group across 1 directory with 15 updates by @dependabot[bot] in #2180
- Streamline HTTP/2 request header copy by @hyperxpro in #2181
- Streamline DefaultChannelPool checkout and close paths by @hyperxpro in #2183
- Bump io.netty:netty-transport-native-epoll from 4.2.13.Final to 4.2.15.Final by @dependabot[bot] in #2188
- Bump io.netty:netty-codec-http2 from 4.2.13.Final to 4.2.15.Final by @dependabot[bot] in #2187
- Bump io.netty:netty-transport-native-kqueue from 4.2.13.Final to 4.2.15.Final by @dependabot[bot] in #2186
- Bump io.netty:netty-resolver-dns from 4.2.13.Final to 4.2.15.Final by @dependabot[bot] in #2185
- Bump io.netty:netty-handler from 4.2.13.Final to 4.2.15.Final by @dependabot[bot] in #2184
- Replace jakarta.activation with an internal MIME-type parser by @hyperxpro in #2193
- Bump the dependencies group across 1 directory with 4 updates by @dependabot[bot] in #2194
- Replace umbrella netty-codec with netty-codec-base and netty-codec-compression by @hyperxpro in #2195
- Fix HTTP/2 silent request timeouts under connection disruptions by @hyperxpro in #2162
- reject set-cookie domain that doesn't match the request host by @jmestwa-coder in #2196
- Stabilize HTTP/2: fix resource leaks and RFC conformance by @hyperxpro in #2197
Security Advisory
New Contributors
- @jmestwa-coder made their first contribution in #2196
Full Changelog: async-http-client-project-3.0.10...async-http-client-project-3.0.11
AHC v3.0.10 Release
What's Changed
- Guard against null TimeoutsHolder in NettyConnectListener.onSuccess by @hyperxpro in #2176
Security Advisory
Full Changelog: async-http-client-project-3.0.9...async-http-client-project-3.0.10
AHC v2.15.0 Release
Security Advisory
Full Changelog: async-http-client-project-2.14.5...async-http-client-project-2.15.0
AHC v2.14.5 Release
Security Advisory
Full Changelog: async-http-client-project-2.12.4...async-http-client-project-2.14.5