feat(listener): Set node tls handshake timeout to 15 seconds

This commit is contained in:
Louis Ruch committed 2026-04-20 11:42:05 -07:00
1 parent b2458f6bb8
commit 09962d0521
2 files changed
+8 -6

No files matched your search

+4 -3
View File
@@ -163,9 +163,10 @@ func (c *Controller) configureForCluster(ln *base.ServerListener) (func(), error
// need to handle individual listener shutdown.
interceptingListener, err := protocol.NewInterceptingListener(
&protocol.InterceptingListenerConfiguration{
Context: c.baseContext,
Storage: workerAuthStorage,
BaseListener: ln.ClusterListener,
Context: c.baseContext,
Storage: workerAuthStorage,
BaseListener: ln.ClusterListener,
TlsHandshakeTimeout: 15 * time.Second,
Options: []nodee.Option{
nodee.WithLogger(eventLogger),
nodee.WithRegistrationWrapper(wrapperToUse),
+4 -3
View File
@@ -199,9 +199,10 @@ func (w *Worker) configureForWorker(ln *base.ServerListener, logger *log.Logger,
interceptingListener, err := protocol.NewInterceptingListener(
&protocol.InterceptingListenerConfiguration{
Context: w.baseContext,
Storage: w.WorkerAuthStorage,
BaseListener: ln.ProxyListener,
Context: w.baseContext,
Storage: w.WorkerAuthStorage,
BaseListener: ln.ProxyListener,
TlsHandshakeTimeout: 15 * time.Second,
BaseTlsConfiguration: &tls.Config{
GetConfigForClient: w.getSessionTls(sessionManager),
},