mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-14 10:49:07 +02:00
set default headers read timeout to 10s
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user