Skip to content

fix: recv_timeout option now respected for pooled connections#833

Merged
benoitc merged 1 commit intomasterfrom
fix/recv-timeout-pooled-connections
Mar 1, 2026
Merged

fix: recv_timeout option now respected for pooled connections#833
benoitc merged 1 commit intomasterfrom
fix/recv-timeout-pooled-connections

Conversation

@benoitc
Copy link
Owner

@benoitc benoitc commented Mar 1, 2026

Summary

Previously, when using connection pooling, the recv_timeout option
passed to hackney:request/5 was ignored. Pooled connections used the
timeout from when they were created.

Now recv_timeout is extracted from Options and passed through ReqOpts
to hackney_conn, where it updates conn_data.recv_timeout per-request
for HTTP/1.1, HTTP/2, HTTP/3, and async request paths.

Fixes #832
@benoitc benoitc force-pushed the fix/recv-timeout-pooled-connections branch from 3e050d4 to 2b074ea Compare March 1, 2026 13:23
@benoitc benoitc merged commit 88348a0 into master Mar 1, 2026
5 checks passed
@benoitc benoitc deleted the fix/recv-timeout-pooled-connections branch March 1, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should recv_timeout option be ignored on pooled connections?

1 participant