Skip to content

Commit 42058d1

Browse files
committed
Release 4.6.0
1 parent 2f6d15b commit 42058d1

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

NEWS.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# NEWS
22

3+
4.6.0 - 2026-07-15
4+
------------------
5+
6+
### Added
7+
8+
- `set_owner/2` now works while a response body is streaming, in both the
9+
synchronous and the async path. It used to return `{error, invalid_state}`
10+
once the body had started. This lets a short lived worker run a request and
11+
hand the still streaming response to a longer lived process before it exits,
12+
without stopping the connection.
13+
- `connect/4` accepts a binary host, restoring the 1.x behavior. A binary is
14+
converted to a string, so callers passing a binary host no longer fail.
15+
16+
### Fixed
17+
18+
- A non-reusable connection (flagged `no_reuse` for proxy tunnels, SSL
19+
upgrades or a disabled pool, or answered with `Connection: close`) is now
20+
closed and its process stopped when a synchronous request completes, instead
21+
of parking in `connected` forever. With a long lived owner nothing stopped
22+
it, so one `hackney_conn` process leaked per request until the node ran out
23+
of memory (#902). The sync and async reuse decision now share the same
24+
check, which also stops a `no_reuse` pooled connection on the async path.
25+
326
4.5.2 - 2026-07-06
427
------------------
528

src/hackney.app.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{application, hackney,
55
[
66
{description, "Simple HTTP client with HTTP/1.1, HTTP/2, and HTTP/3 support"},
7-
{vsn, "4.5.2"},
7+
{vsn, "4.6.0"},
88
{registered, [hackney_pool]},
99
{applications, [kernel,
1010
stdlib,

0 commit comments

Comments
 (0)