diff --git a/noise.go b/noise.go index c8e6674..45bff7b 100644 --- a/noise.go +++ b/noise.go @@ -31,7 +31,9 @@ func (h *Headscale) NoiseUpgradeHandler( return } - server := http.Server{} + server := http.Server{ + ReadTimeout: HTTPReadTimeout, + } server.Handler = h2c.NewHandler(h.noiseMux, &http2.Server{}) err = server.Serve(netutil.NewOneConnListener(noiseConn, nil)) if err != nil {