Skip to content

Bound websocket request sends with idle timeout#20751

Merged
pakrym-oai merged 1 commit intomainfrom
pakrym/websocket-send-timeout
May 2, 2026
Merged

Bound websocket request sends with idle timeout#20751
pakrym-oai merged 1 commit intomainfrom
pakrym/websocket-send-timeout

Conversation

@pakrym-oai
Copy link
Copy Markdown
Collaborator

@pakrym-oai pakrym-oai commented May 2, 2026

Why

We saw Responses websocket sessions recover only after a long quiet period when the server had already logged the websocket as disconnected. The normal connect path is already bounded by websocket_connect_timeout_ms, but the first request send on an established websocket reused only the receive-side idle timeout after the write completed. If the socket write/pump stalls, the client can sit in ws_stream.send(...) without reaching the existing receive timeout.

@pakrym-oai pakrym-oai merged commit 35aaa5d into main May 2, 2026
25 of 26 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/websocket-send-timeout branch May 2, 2026 06:33
@github-actions github-actions Bot locked and limited conversation to collaborators May 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants