Changelog History
Page 1
-
v4.7.2 Changes
July 17, 2026Bump
quicto 1.7.1. A clean QUIC connection close (idle pooled HTTP/3 connections, orderly shutdown) no longer emits ERROR and CRASH reports fromquic_h3_connectionnor propagates an abnormal exit to the connection owner. This also removes the intermittent eunit group cancellation in the h3/wt test suites.๐ See NEWS.md for details. PR #913.
-
v4.7.1 Changes
July 17, 2026Chunked decoding no longer fails with
{error, invalid_chunk_size}when the CRLF terminating a chunk-size line is split across two socket reads (buffer ending on a lone\r). The parser now waits for the\n(#901).A malformed chunk-size line or chunk terminator now fails cleanly with
{error, invalid_chunk_size}or{error, poorly_formatted_chunked_size}instead of crashing the parser with acase_clauseerror.๐ See NEWS.md for details. PR #912.
-
v4.7.0 Changes
July 16, 2026HTTP/2 request bodies larger than the peer's flow control window no longer fail with
{error, send_buffer_full}. Body sends block until the server opens the window, bounded by the newsend_timeoutoption (default 30000 ms,infinityallowed,nonblockrestores the old fail-fast behavior). If the window never opens the request fails with{error, timeout}and the abandoned stream is reset so its buffered body does not linger on a shared connection. Applies to whole-body and streamed HTTP/2 request bodies; HTTP/1.1 and HTTP/3 are unchanged.HTTP/2 async requests now deliver their response messages: the stream entry stored an internal reference where the delivery code expected the
stream_topid, so every async HTTP/2 response was silently dropped.HTTP/2
{async, once}now honorsstream_next/1with the same contract as HTTP/1.1: status and headers eagerly, then one message per pull. once streams use h2 manual flow control, so a slow consumer keeps the peer's window closed and in-flight data stays bounded to one window.0๏ธโฃ Connections created with
hackney:connect/4and{pool, false}honor a{send_timeout, T}connect option; pooled connections keep the default and take the per-request option instead.๐ See NEWS.md for details. PR #911.
-
v4.6.1 Changes
July 15, 2026๐ Changed
- โฌ๏ธ Bump
h2to 0.11.0. It addsh2:peername/1, which returns the peer's{IpAddress, Port}for a live connection. Additive only; no behavior change for hackney.
- โฌ๏ธ Bump
-
v4.6.0 Changes
July 15, 2026โ Added
- ๐
set_owner/2now works while a response body is streaming, in both the synchronous and the async path. It used to return{error, invalid_state}once the body had started. This lets a short lived worker run a request and hand the still streaming response to a longer lived process before it exits, without stopping the connection. connect/4accepts a binary host, restoring the 1.x behavior. A binary is converted to a string, so callers passing a binary host no longer fail.
๐ Fixed
- โฌ๏ธ A non-reusable connection (flagged
no_reusefor proxy tunnels, SSL upgrades or a disabled pool, or answered withConnection: close) is now closed and its process stopped when a synchronous request completes, instead of parking inconnectedforever. With a long lived owner nothing stopped it, so onehackney_connprocess leaked per request until the node ran out of memory (#902). The sync and async reuse decision now share the same check, which also stops ano_reusepooled connection on the async path.
- ๐
-
v4.5.2 Changes
July 05, 2026๐ Dependency bump release. No API changes.
๐ Changed
- Bump
h2to 0.10.4. It fixes a regression from 0.10.3 where a blocking send whose data had fully drained received{error, stream_closed}when the stream closed on its END_STREAM chunk. A waiting sender is now settled asokonce the send buffer has drained, and only gets the close-reason error when data is still outstanding. - โฌ๏ธ Bump
quicto 1.7.0. Relevant to hackney's HTTP/3 client: the connection flow-control window now slides forward with received bytes instead of stalling after 8 MiB, so large HTTP/3 downloads keep flowing; the idle timer restarts on received activity per RFC 9000 ยง10.1; an invalid peer SETTINGS frame now closes the connection cleanly instead of crashing; and a client recognizes a server stateless reset (RFC 9000 ยง10.3) and closes promptly instead of waiting for the idle timeout. - โฌ๏ธ Bump
webtransportto 0.4.3, which aligns its transitiveh2(0.10.4) andquic(1.7.0) dependencies with hackney's own, so thewt_*API runs on the same HTTP/2 and HTTP/3 stack versions.
- Bump
-
v4.5.1 Changes
July 04, 2026๐ Changed
- โฌ๏ธ Bump
h2to 0.10.3. It fixes an HTTP/2 upload hang: a sender blocked on
๐ flow control is now released with{error, stream_reset}or
{error, stream_closed}when the peer cancels the stream, instead of
hanging for the connection's lifetime. This affects hackney's streamed
request bodies over HTTP/2 when the server resets the stream
mid-backpressure.
- โฌ๏ธ Bump
-
v4.5.0 Changes
July 04, 2026โ Added
- HTTP QUERY method (RFC 10008) as a first-class method:
hackney:query/1..4
helpers andhackney:request(query, ...). QUERY is safe and idempotent and
carries a request body like POST. It works over HTTP/1.1, HTTP/2, and
HTTP/3 with every request body mode (binary, streamed, async, connection
API).
- HTTP QUERY method (RFC 10008) as a first-class method:
-
v4.4.5 Changes
June 18, 2026๐ Fixed
- HTTPS: a connection reused over a resumed TLS 1.3 session is no longer
mislabeled as HTTP/1 when it negotiated HTTP/2.ssl:negotiated_protocol/1
reports nothing on a resumed session, so hackney now remembers the protocol
learned on the full handshake (per host and advertised ALPN) and offers
resumption only once that protocol is known, resolving a resumed session
against that snapshot. Reused h2 connections take the h2 path instead of
๐ feeding h2 frames to the HTTP/1 parser. - HTTP/1.1: a response that cannot begin an HTTP/1 status line (for example an
HTTP/2 frame on a mislabeled connection) now fails fast with
{error, {bad_response, not_http}}instead of spinning the CPU in the
๐ status-line parser. - Connection pooling:
Connection: closeresponses are no longer returned to
๐ the pool on the sync body path; checkin only pools connections proven
0๏ธโฃ keep-alive and socket-ready (unknown defaults to close); and a closed pooled
entry is discarded at checkout instead of being redialed inside the pool
๐จ process (#888). - Connection pooling: stopping a pool while requests are in flight no longer
leaks the per-host concurrency (load_regulation) slots of the checked-out
๐ connections. The pool now traps exits so its shutdown releases those slots and
stops the in-use connections, instead of orphaning them and starving the host's
concurrency cap node-wide (#892).
- HTTPS: a connection reused over a resumed TLS 1.3 session is no longer
-
v4.4.4 Changes
June 17, 2026๐ Fixed
- HTTP/2: a connection is no longer reused after the peer sends
GOAWAYwhile keeping the socket open (as AWS ALB does to recycle connections). The connection is retired so the pool dials a fresh one, instead of being handed out again with new streams the peer ignores untilrecv_timeout. - โฑ HTTP/2: when the per-stream
recv_timeoutwatchdog fires, the stalled stream is cancelled (RST_STREAM) so the peer stops sending and the connection is not reused with an orphaned stream. - HTTP/1.1: bytes that issue #544's idle
{active, once}delivers to the connection mailbox on a reused connection are now buffered and fed to the next request instead of dropping the connection (refines the 4.4.3 behavior), so a reused request no longer blocks torecv_timeoutwhile the response sits stranded as an unread message. The idle buffer is bounded, and a server close still refuses reuse (#544).
- HTTP/2: a connection is no longer reused after the peer sends