forked from quic-go/quic-go
don't set the small packets timer when no packet is ready for sending
This commit is contained in:
@@ -419,6 +419,10 @@ func (s *Session) maybeSendPacket() error {
|
||||
return s.sendPacket()
|
||||
}
|
||||
|
||||
if maxPacketSize == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
if s.smallPacketDelayedOccurranceTime.IsZero() {
|
||||
s.smallPacketDelayedOccurranceTime = time.Now()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user