-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use independent deadline for sending error (#79)
* fix: use independent deadline for sending error * tests: adapt unit tests to cover this case The other side of the connection relies on this error message being received in order to close the connection, indefinitely keeping it open otherwise. Taking this into account, this should be considered a control message, not part of the connection but the session instead. However, since c.writeDeadline is being used (which is indeed controlled via net.Conn interface), the upper crypto/tls.Conn is setting this deadline to an invalid value in order to prevent further writes. This causes the error messages to never be sent.
- Loading branch information
Showing
3 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
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
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
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