diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-10 17:06:03 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-10 17:06:03 +0100 |
| commit | b73b1ade23805be93e7e0cc056c258652b4a0db3 (patch) | |
| tree | dfeaadf4f448e1084075bab6a05e79dc3b006fd6 /tests/test_obs.py | |
| parent | 87e5b715075fb56343d2d10a6a532d04d8fc615b (diff) | |
| download | deck-it-b73b1ade23805be93e7e0cc056c258652b4a0db3.tar.gz deck-it-b73b1ade23805be93e7e0cc056c258652b4a0db3.zip | |
fix(server): read a refused POST body before answering
A POST refused before its body was read (403, 401, 404, a wrong type or
size) closed the socket on unread bytes; the kernel reset it and the
client saw a broken pipe instead of the answer. test_upload_limits hit
this about once in 40 runs (BrokenPipeError), and it slipped into the
previous commit's suite run. _refuse reads up to 1 MiB of the body
first; 0 failures in 300 runs of the affected tests after.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_obs.py')
0 files changed, 0 insertions, 0 deletions
