Skip to content

Commit

Permalink
Make timeouts more aggressive -- seems to get rid of stalls with lots…
Browse files Browse the repository at this point in the history
… of connections
  • Loading branch information
bdwyertech committed Aug 6, 2021
1 parent e3f331d commit b5c413f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/gontlm-proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,10 @@ func Run() {
http.DefaultClient.Timeout = 10 * time.Second

srv := &http.Server{
Handler: proxy,
IdleTimeout: time.Second * 60,
Handler: proxy,
IdleTimeout: 5 * time.Second,
ReadTimeout: 5 * time.Second,
WriteTimeout: 10 * time.Second,
}
listener, err := net.Listen("tcp4", bind.Host)
if err != nil {
Expand Down

0 comments on commit b5c413f

Please sign in to comment.