Last active
October 29, 2019 17:35
-
-
Save Sean-Der/49b3d53d0e2b85d7dff1b82b9f3678ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/conn.go b/conn.go | |
index 1698b07..c45e131 100644 | |
--- a/conn.go | |
+++ b/conn.go | |
@@ -570,6 +570,7 @@ func (c *Conn) handleIncomingPacket(buf []byte) (*alert, error) { | |
} | |
if h.epoch < c.getRemoteEpoch() { | |
+ c.log.Debugf("retransmitting, got message from old epoch: %v %v", h.epoch, c.getRemoteEpoch()) | |
if _, alertPtr, err := c.flightHandler(c); err != nil { | |
return alertPtr, err | |
} | |
@@ -633,6 +634,7 @@ func (c *Conn) handleIncomingPacket(buf []byte) (*alert, error) { | |
return &alert{alertLevelFatal, alertUnexpectedMessage}, fmt.Errorf("ApplicationData with epoch of 0") | |
} | |
+ c.log.Debugf("decrypted with len(%v)", len(content.data)) | |
c.decrypted <- content.data | |
default: | |
return &alert{alertLevelFatal, alertUnexpectedMessage}, fmt.Errorf("unhandled contentType %d", content.contentType()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment