mirror of
https://github.com/goauthentik/authentik
synced 2026-04-25 17:15:26 +02:00
internal: add default go http server timeouts (#17858)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@@ -241,9 +241,7 @@ func (ws *WebServer) listenPlain() {
|
||||
}
|
||||
|
||||
func (ws *WebServer) serve(listener net.Listener) {
|
||||
srv := &http.Server{
|
||||
Handler: ws.mainRouter,
|
||||
}
|
||||
srv := web.Server(ws.mainRouter)
|
||||
|
||||
// See https://golang.org/pkg/net/http/#Server.Shutdown
|
||||
idleConnsClosed := make(chan struct{})
|
||||
|
||||
Reference in New Issue
Block a user