Skip to content

Commit

Permalink
Respect disableRetransmitBackoff
Browse files Browse the repository at this point in the history
48d6748 only enabled it in sending, not finish
  • Loading branch information
Sean-Der committed Jul 12, 2024
1 parent a6d9640 commit 0a1b73a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion handshaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,11 @@ func (s *handshakeFSM) finish(ctx context.Context, c flightConn) (handshakeState
return handshakeFinished, nil
}
<-retransmitTimer.C

// RFC 4347 4.2.4.1
s.retransmitInterval *= 2
if !s.cfg.disableRetransmitBackoff {
s.retransmitInterval *= 2
}
if s.retransmitInterval > time.Second*60 {
s.retransmitInterval = time.Second * 60
}
Expand Down

0 comments on commit 0a1b73a

Please sign in to comment.