fix: reuse tls conn for tls resumption

rabbitprincess committed Mar 9, 2026 at 21:54 UTC 547b66cd783f7393533abddc7d5bf84dc5ca658b
1 file changed +2 -1
sdk/listener.go
+2 -1
@@ -242,7 +242,8 @@ func (l *Listener) activate(conn net.Conn) error {
242 l.mu.Lock()
243 tlsCfg := l.tlsConfig
244 l.mu.Unlock()
245 - tlsConn := tls.Server(conn, tlsCfg.Clone())
245 + // Reuse the shared config so session ticket state survives across connections.
246 + tlsConn := tls.Server(conn, tlsCfg)
247 handshakeCtx, cancel := context.WithTimeout(l.context(), l.client.handshakeTimeout)
248 defer cancel()
249 if err := tlsConn.HandshakeContext(handshakeCtx); err != nil {