Skip to content

Commit

Permalink
add default handshake cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmo314 committed Jul 19, 2024
1 parent f4011b1 commit b627914
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),

Expand Down

0 comments on commit b627914

Please sign in to comment.