Skip to content

Revert "fix(libstore/filetransfer): enable TCP keep-alive on curl han… - #15522

Merged
lovesegfault merged 1 commit into
masterfrom
fix/s3-connection-reuse
Mar 19, 2026
Merged

Revert "fix(libstore/filetransfer): enable TCP keep-alive on curl han…#15522
lovesegfault merged 1 commit into
masterfrom
fix/s3-connection-reuse

Conversation

@Mic92

@Mic92 Mic92 commented Mar 19, 2026

Copy link
Copy Markdown
Member

…dles"

This reverts commit 736abd5.

TCP keepalive with 60s idle/interval causes S3 to respond with RequestTimeout (HTTP 400) when curl reuses connections that S3 has already logically closed. S3 aggressively drops idle connections and sends 'Connection: close', but keepalive keeps the TCP socket alive, so curl thinks it can reuse a connection the server has already abandoned.

This produced ~17.8k upload failures on Hydra after the change was deployed.

…dles"

This reverts commit 736abd5.

TCP keepalive with 60s idle/interval causes S3 to respond with
RequestTimeout (HTTP 400) when curl reuses connections that S3
has already logically closed.  S3 aggressively drops idle
connections and sends 'Connection: close', but keepalive keeps
the TCP socket alive, so curl thinks it can reuse a connection
the server has already abandoned.

This produced ~17.8k upload failures on Hydra after the change
was deployed.
@Mic92
Mic92 requested a review from Ericson2314 as a code owner March 19, 2026 11:55
@lovesegfault
lovesegfault added this pull request to the merge queue Mar 19, 2026
Merged via the queue into master with commit 1607704 Mar 19, 2026
20 checks passed
@lovesegfault
lovesegfault deleted the fix/s3-connection-reuse branch March 19, 2026 14:13
@Mic92 Mic92 added the backport 2.34-maintenance Automatically creates a PR against the branch label Mar 19, 2026
@internal-nix-ci

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 2.34-maintenance Automatically creates a PR against the branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants