shorten TCPKeepAlive length
parent
b0f3fc9176
commit
37f7ba5c68
|
@ -81,7 +81,7 @@ func (s *Server) Serve() error {
|
|||
|
||||
httpServer := &graceful.Server{Server: new(http.Server)}
|
||||
httpServer.SetKeepAlivesEnabled(true)
|
||||
httpServer.TCPKeepAlive = 1 * time.Minute
|
||||
httpServer.TCPKeepAlive = 5 * time.Second
|
||||
httpServer.Handler = s.handler
|
||||
|
||||
if !s.ReportingDisabled {
|
||||
|
|
Loading…
Reference in New Issue