Merge branch '1.9'

This commit is contained in:
Bryan Boreham committed 2017-03-06 11:26:00 +00:00
commit 0c68ad4acb
1 file changed
+5 -3
+5 -3
View File
@@ -577,8 +577,8 @@ type fastDatapathForwarder struct {
confirmed bool confirmed bool
remoteAddr *net.UDPAddr remoteAddr *net.UDPAddr
heartbeatInterval time.Duration heartbeatInterval time.Duration
heartbeatTimer *time.Timer heartbeatTimer *time.Timer // for sending
heartbeatTimeout *time.Timer heartbeatTimeout *time.Timer // for receiving
ackedHeartbeat bool ackedHeartbeat bool
stopChan chan struct{} stopChan chan struct{}
stopped bool stopped bool
@@ -856,7 +856,9 @@ func (fwd *fastDatapathForwarder) handleCryptoInitSARemote(msg []byte) {
return return
} }
if !fwd.isOutboundIPSecEstablished { // FastDatapathCryptoInitSARemote can be received before Confirm'ing
// connection, thus before InitSALocal.
if fwd.confirmed && !fwd.isOutboundIPSecEstablished {
fwd.isOutboundIPSecEstablished = true fwd.isOutboundIPSecEstablished = true
fwd.heartbeatTimer.Reset(0) fwd.heartbeatTimer.Reset(0)
} }