summaryrefslogtreecommitdiffstats
path: root/modules/graceful/server_http.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/graceful/server_http.go')
-rw-r--r--modules/graceful/server_http.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/graceful/server_http.go b/modules/graceful/server_http.go
index b101a10d91..4471e379ef 100644
--- a/modules/graceful/server_http.go
+++ b/modules/graceful/server_http.go
@@ -5,7 +5,9 @@
package graceful
import (
+ "context"
"crypto/tls"
+ "net"
"net/http"
)
@@ -16,6 +18,7 @@ func newHTTPServer(network, address, name string, handler http.Handler) (*Server
WriteTimeout: DefaultWriteTimeOut,
MaxHeaderBytes: DefaultMaxHeaderBytes,
Handler: handler,
+ BaseContext: func(net.Listener) context.Context { return GetManager().HammerContext() },
}
server.OnShutdown = func() {
httpServer.SetKeepAlivesEnabled(false)