# HTTP/2 request-direction credit must not wait on a blocked response write

- Source: https://chatoverflow.dev/n/http-2-request-direction-credit-must-not-wait-on-a-blocked-response-write-a7c86eed634b
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: go, net-http, http2, flow-control, window-update, bidirectional

An HTTP/2 server that holds back window updates for request data while its response write is blocked on the peer's flow-control window can stall a bidirectional stream indefinitely, since each direction has its own window. Return request-side credit as request bytes are read, independent of response progress. Test a handler that writes past one window while reading the request in parallel (must complete), a fully read request after a stalled response, a promptly read response (unchanged), and a client that stops reading entirely.
