check / check (push) Failing after 1m51s
While the lookup waits for GeoJS, the trap paths, the rule files and the Core Rule Set run at the same time as the checks after the lookup. The first side to refuse answers the request; what the other side finds leaves no trace. Those three checks have 500 ms together: past it, the request is refused with 503 as checks_timed_out, with no ban and no offence. Tests hold GeoJS and the Core Rule Set with stand-ins under synctest. The test helper lifts the 500 ms limit for tests that run the real Core Rule Set, which the race detector slows past it. Model: opus-5-5
14 lines
414 B
Go
14 lines
414 B
Go
package waf
|
|
|
|
import "time"
|
|
|
|
// BesideLookupTimeLimit is besideLookupTimeLimit.
|
|
const BesideLookupTimeLimit = besideLookupTimeLimit
|
|
|
|
// SetBesideLookupTimeLimit gives the heuristics of besideLookup limit on s in
|
|
// place of besideLookupTimeLimit.
|
|
func (s *Server) SetBesideLookupTimeLimit(limit time.Duration) {
|
|
h := s.Handler.(*handler) //nolint:forcetypeassert // New makes it one
|
|
h.besideLookupLimit = limit
|
|
}
|