diff --git a/internal/rproxy/limits_test.go b/internal/rproxy/limits_test.go index bc0f68e..1d96bf0 100644 --- a/internal/rproxy/limits_test.go +++ b/internal/rproxy/limits_test.go @@ -870,10 +870,14 @@ func TestAnAnswerRProxyGivesItselfHasTenSecondsToBeSentAtLeast( func TestAVisitorTooSlowToSendTheRestIsAnswered408(t *testing.T) { t.Parallel() + // rproxy is waiting for the rest of the body well within this limit, even on + // a busy host, and answers when it runs out, well before dial's deadline. + const limit = 5 * time.Second + standIn := startWAF(t, allow) app := startApp(t, greet) addr, _ := startRProxy(t, standIn.URL, app.URL, map[string]string{ - maxRequestTime: "3000", + maxRequestTime: strconv.FormatInt(limit.Milliseconds(), 10), }) conn := dial(t, addr)