All Versions
20
Latest Version
Avg Release Cycle
173 days
Latest Release
120 days ago

Changelog History
Page 1

  • v4.7.2 Changes

    July 17, 2026

    Bump quic to 1.7.1. A clean QUIC connection close (idle pooled HTTP/3 connections, orderly shutdown) no longer emits ERROR and CRASH reports from quic_h3_connection nor 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, 2026

    Chunked 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 a case_clause error.

    ๐Ÿ‘€ See NEWS.md for details. PR #912.

  • v4.7.0 Changes

    July 16, 2026

    HTTP/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 new send_timeout option (default 30000 ms, infinity allowed, nonblock restores 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_to pid, so every async HTTP/2 response was silently dropped.

    HTTP/2 {async, once} now honors stream_next/1 with 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/4 and {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 h2 to 0.11.0. It adds h2:peername/1, which returns the peer's {IpAddress, Port} for a live connection. Additive only; no behavior change for hackney.
  • v4.6.0 Changes

    July 15, 2026

    โž• Added

    • ๐Ÿ”€ set_owner/2 now 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/4 accepts 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_reuse for proxy tunnels, SSL upgrades or a disabled pool, or answered with Connection: close) is now closed and its process stopped when a synchronous request completes, instead of parking in connected forever. With a long lived owner nothing stopped it, so one hackney_conn process 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 a no_reuse pooled connection on the async path.
  • v4.5.2 Changes

    July 05, 2026

    ๐Ÿš€ Dependency bump release. No API changes.

    ๐Ÿ”„ Changed

    • Bump h2 to 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 as ok once the send buffer has drained, and only gets the close-reason error when data is still outstanding.
    • โฌ†๏ธ Bump quic to 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 webtransport to 0.4.3, which aligns its transitive h2 (0.10.4) and quic (1.7.0) dependencies with hackney's own, so the wt_* API runs on the same HTTP/2 and HTTP/3 stack versions.
  • v4.5.1 Changes

    July 04, 2026

    ๐Ÿ”„ Changed

    • โฌ†๏ธ Bump h2 to 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.
  • v4.5.0 Changes

    July 04, 2026

    โž• Added

    • HTTP QUERY method (RFC 10008) as a first-class method: hackney:query/1..4
      helpers and hackney: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).
  • 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: close responses 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).
  • v4.4.4 Changes

    June 17, 2026

    ๐Ÿ›  Fixed

    • HTTP/2: a connection is no longer reused after the peer sends GOAWAY while 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 until recv_timeout.
    • โฑ HTTP/2: when the per-stream recv_timeout watchdog 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 to recv_timeout while the response sits stranded as an unread message. The idle buffer is bounded, and a server close still refuses reuse (#544).