Merge pull request #3120 from lucas-clemente/fix-handshake-idle-timeout

fix calculation of the handshake idle timeout
This commit is contained in:
Marten Seemann
2021-04-02 18:32:24 +07:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -2158,6 +2158,7 @@ var _ = Describe("Session", func() {
})
It("doesn't send a PING if the handshake isn't completed yet", func() {
sess.config.HandshakeIdleTimeout = time.Hour
sess.handshakeComplete = false
// Needs to be shorter than our idle timeout.
// Otherwise we'll try to send a CONNECTION_CLOSE.