You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drain rejected webhook bodies before closing to avoid TCP RST on Windows
The previous flow sent the 4xx response (413/404/401) and let the
socket close with the request body still buffered. Windows TCP turns
close-with-unread-bytes into RST, which the client surfaces as
WinError 10053 *before* the response is read — masking the status and
intermittently flaking test_oversize_body_rejected on CI runners.
Now every early-return path drains the declared body in 64 KiB chunks
(capped at 4× the body limit so a hostile Content-Length can't make
us spin), guaranteeing a clean FIN close and a readable 4xx on the
client side.
0 commit comments