Skip to content

Commit

Permalink
Disable keep-alive
Browse files Browse the repository at this point in the history
  • Loading branch information
Phisto committed Jan 26, 2024
1 parent 1e842f2 commit 71a66b6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions server/handler/loadbalance.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ func goToLoadbalancedHost(service string, conf *config.Config, w http.ResponseWr

TLSHandshakeTimeout: 10 * time.Second,
IdleConnTimeout: 10 * time.Second,
ResponseHeaderTimeout: 10 * time.Second,
ResponseHeaderTimeout: 30 * time.Second,

MaxIdleConns: 3000,
MaxIdleConnsPerHost: 100,
//MaxIdleConns: 1,
//MaxIdleConnsPerHost: 1,
MaxConnsPerHost: 0,
DisableKeepAlives: true,
}
reverseProxy.ServeHTTP(w, r)
}
Expand Down

0 comments on commit 71a66b6

Please sign in to comment.