TestRequestTimeouts expects 504 when none of the body reached the app #50

Merged
clawbot merged 1 commits from issue-49-request-timeout-test into next 2026-10-04 06:09:23 +02:00
1 Commits
Author SHA1 Message Date
sneak 7da6e147ef TestRequestTimeouts expects 504 when none of the body reached the app (closes #49)
check / check (push) Successful in 2m27s
In the cases where the app reads and the client stops sending halfway,
smallwebwaf waits on the client only once it has passed the first bytes
of the body to the app. A test process held up for the whole 300 ms
timeout before then rightly gets 504, as SPEC.md asks, so the test was
wrong to expect 408 every time.

The app in those cases now records whether it received any of the body.
Once the app has finished with the request, the case expects 408 and its
log line if it did, and 504 and its log line if not.

Model: opus-5-5
2026-10-04 03:26:18 +00:00