only arm the application data PTO timer after the handshake is confirmed

This commit is contained in:
Marten Seemann
2020-07-27 16:40:21 +07:00
parent a854a4ace9
commit 8db76ab9c2
6 changed files with 23 additions and 27 deletions

View File

@@ -28,7 +28,7 @@ type SentPacketHandler interface {
ReceivedBytes(protocol.ByteCount)
DropPackets(protocol.EncryptionLevel)
ResetForRetry() error
SetHandshakeComplete()
SetHandshakeConfirmed()
// The SendMode determines if and what kind of packets can be sent.
SendMode() SendMode