Skip to content

Commit

Permalink
Setting read/write timeout seems to break websocket and streaming con…
Browse files Browse the repository at this point in the history
…nections...
  • Loading branch information
bdwyertech committed Sep 18, 2021
1 parent 3e2282d commit bd77e1d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/gontlm-proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,8 @@ func Run() {
http.DefaultClient.Timeout = 10 * time.Second

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

0 comments on commit bd77e1d

Please sign in to comment.