set default headers read timeout to 10s

Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
This commit is contained in:
Dmitri Dolguikh
2026-09-09 16:21:54 +02:00
parent aea0403288
commit e82d1140d6
+3 -2
View File
@@ -50,8 +50,9 @@ func New(handler http.Handler, opts ...Option) *Proxy {
// Handler returns an http.Handler that proxies WebSocket connections to the local gRPC server.
func (p *Proxy) Handler() http.Handler {
return &proxyHandler{
metrics: p.config.MetricsRecorder,
handler: p.config.Handler,
metrics: p.config.MetricsRecorder,
handler: p.config.Handler,
headersReadTimeout: 10 * time.Second,
}
}