diff --git a/pkg/aggregation/server.go b/pkg/aggregation/server.go index 3f68598..9d39c3d 100644 --- a/pkg/aggregation/server.go +++ b/pkg/aggregation/server.go @@ -15,10 +15,14 @@ import ( "github.com/sirupsen/logrus" ) +const ( + HandshakeTimeOut = 10 * time.Second +) + func ListenAndServe(ctx context.Context, url string, caCert []byte, token string, handler http.Handler) { dialer := websocket.Dialer{ Proxy: http.ProxyFromEnvironment, - HandshakeTimeout: 45 * time.Second, + HandshakeTimeout: HandshakeTimeOut, } if caCert != nil && len(caCert) == 0 {