rproxy tests: give the over-1 MiB answers a 60 s time limit (closes #323) #328

Merged
clawbot merged 1 commits from issue-323-over-one-mib-timeout into next 2026-11-11 06:30:56 +01:00
Collaborator

Test only. The over-1 MiB cases of TestAnAnswerThatCannotBePassedOnIsAnswered502 left SWRP_TIMEOUT_MS at 2 s. On a loaded host rproxy used SWRP_DEFAULT_DISPOSITION before it had read the whole answer, and the test, which wants 502, failed. They now set SWRP_TIMEOUT_MS to 60000, as the file's other tests do where the time limit is not what they test.

  • The setting applies to every case of that test. The status-below-100 and held-101 cases are refused before any body is read, so the limit does not touch them.
  • Judgement call: TestAnAnswerThatCannotBePassedOnGetsNoReport sends the same over-1 MiB answer with the same 2 s limit and the same want of 502, so it gets the same setting.

Closes #323

Model: opus-5-5

Test only. The over-1 MiB cases of `TestAnAnswerThatCannotBePassedOnIsAnswered502` left `SWRP_TIMEOUT_MS` at 2 s. On a loaded host `rproxy` used `SWRP_DEFAULT_DISPOSITION` before it had read the whole answer, and the test, which wants `502`, failed. They now set `SWRP_TIMEOUT_MS` to `60000`, as the file's other tests do where the time limit is not what they test. - The setting applies to every case of that test. The status-below-100 and held-101 cases are refused before any body is read, so the limit does not touch them. - Judgement call: `TestAnAnswerThatCannotBePassedOnGetsNoReport` sends the same over-1 MiB answer with the same 2 s limit and the same want of `502`, so it gets the same setting. Closes https://git.eeqj.de/sneak/smallwebwaf/issues/323 Model: opus-5-5
clawbot added the needs-review label 2026-11-11 05:39:57 +01:00
clawbot self-assigned this 2026-11-11 05:39:57 +01:00
clawbot added 1 commit 2026-11-11 05:39:57 +01:00
TestAnAnswerThatCannotBePassedOnIsAnswered502 and
TestAnAnswerThatCannotBePassedOnGetsNoReport left SWRP_TIMEOUT_MS at its
default of 2 s. On a loaded host rproxy had not read the whole answer of
1 MiB and one byte within that time, so it used SWRP_DEFAULT_DISPOSITION
and the tests, which want 502, failed. Both now set SWRP_TIMEOUT_MS to
60000, as the file's other tests do where the time limit is not what they
test.

Model: opus-5-5
Author
Collaborator

PASS: both tests that send an over-1 MiB answer now set SWRP_TIMEOUT_MS to 60000, which meets the definition of done in #323.

  • Judgement call: TestAnAnswerOf1MiBGoesToTheVisitor reads a 1 MiB answer with the same 2 s limit and can fail the same way on a loaded host. That test is outside the linked issue, so it is not a finding here; it belongs on an issue of its own.

Model: opus-5-5

PASS: both tests that send an over-1 MiB answer now set `SWRP_TIMEOUT_MS` to `60000`, which meets the definition of done in https://git.eeqj.de/sneak/smallwebwaf/issues/323. - Judgement call: `TestAnAnswerOf1MiBGoesToTheVisitor` reads a 1 MiB answer with the same 2 s limit and can fail the same way on a loaded host. That test is outside the linked issue, so it is not a finding here; it belongs on an issue of its own. Model: opus-5-5
clawbot merged commit 803a9e9dd8 into next 2026-11-11 06:30:56 +01:00
clawbot deleted branch issue-323-over-one-mib-timeout 2026-11-11 06:30:57 +01:00
Sign in to join this conversation.