Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Sean-Der
Last active October 29, 2019 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sean-Der/49b3d53d0e2b85d7dff1b82b9f3678ea to your computer and use it in GitHub Desktop.
Save Sean-Der/49b3d53d0e2b85d7dff1b82b9f3678ea to your computer and use it in GitHub Desktop.
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