Merge pull request #1423 from lucas-clemente/fix-handshake-alarm

only fire the handshake alarm if handshake packets are outstanding
This commit is contained in:
Marten Seemann
2018-07-02 21:24:10 +07:00
committed by GitHub

View File

@@ -376,7 +376,7 @@ func (h *sentPacketHandler) OnAlarm() error {
now := time.Now()
var err error
if !h.handshakeComplete {
if h.packetHistory.HasOutstandingHandshakePackets() {
if h.logger.Debug() {
h.logger.Debugf("Loss detection alarm fired in handshake mode")
}