From b627914f875063fcafa25a6169fa61a3e11ecd6d Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Thu, 18 Jul 2024 23:32:54 -0400 Subject: [PATCH] add default handshake cancel --- conn.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/conn.go b/conn.go index 11250756..b01c00af 100644 --- a/conn.go +++ b/conn.go @@ -206,10 +206,11 @@ func createConn(nextConn net.PacketConn, rAddr net.Addr, config *Config, isClien readDeadline: deadline.New(), writeDeadline: deadline.New(), - reading: make(chan struct{}, 1), - handshakeRecv: make(chan recvHandshakeState), - closed: closer.NewCloser(), - cancelHandshaker: func() {}, + reading: make(chan struct{}, 1), + handshakeRecv: make(chan recvHandshakeState), + closed: closer.NewCloser(), + cancelHandshaker: func() {}, + cancelHandshakeReader: func() {}, replayProtectionWindow: uint(replayProtectionWindow),