Skip to content

Commit

Permalink
fix timeoutSeconds
Browse files Browse the repository at this point in the history
  • Loading branch information
skonto committed Nov 26, 2024
1 parent 3e45e8f commit 22b814d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/http/handler/timeout.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,8 @@ func (h *timeoutHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
case <-timeout.C():
timeoutDrained = true
if tw.tryTimeoutAndWriteError(h.body) {
return
}
tw.timeoutAndWriteError(h.body)
return
case now := <-idleTimeoutCh:
timedOut, timeToNextTimeout := tw.tryIdleTimeoutAndWriteError(now, revIdleTimeout, h.body)
if timedOut {
Expand Down

0 comments on commit 22b814d

Please sign in to comment.