Disable HTTP KeepAlives
This commit is contained in:
parent
26de6d2e9c
commit
417d2a3b12
1 changed files with 2 additions and 0 deletions
|
@ -127,6 +127,8 @@ func Serve(cfg *config.Config, tkr *tracker.Tracker) {
|
|||
},
|
||||
}
|
||||
|
||||
grace.SetKeepAlivesEnabled(false)
|
||||
|
||||
if err := grace.ListenAndServe(); err != nil {
|
||||
if opErr, ok := err.(*net.OpError); !ok || (ok && opErr.Op != "accept") {
|
||||
glog.Errorf("Failed to gracefully run HTTP server: %s", err.Error())
|
||||
|
|
Loading…
Add table
Reference in a new issue