rproxy: the two time limits get a type and a file of their own (closes #432)
check / check (push) Failing after 3m36s

timeLimits in internal/rproxy/timelimits.go owns the mutex, the two
timers and the end of the request; request holds one field of it. It
is given refuse, whether the visitor's body is being waited on, and a
function that ends that read. Tests of the type alone run in a
synctest bubble.

Model: opus-5-5
This commit was merged in pull request #478.
This commit is contained in:
clawbot committed 2026-11-20 00:28:55 +01:00
1 parent 17400f68b8
commit abf6c8d517
4 files changed
+367 -163

No files matched your search

+1 -1
View File
@@ -188,7 +188,7 @@ func canBeAsked(r *http.Request) bool {
// answerWith gives the visitor waf's answer, less its disposition.
func (rq *request) answerWith(answer *wafAnswer) {
rq.prepareOwnAnswer(rq.requestDeadline())
rq.prepareOwnAnswer(rq.limits.requestDeadline())
header := rq.out.Header()
maps.Copy(header, answer.header)