nim-websock icon indicating copy to clipboard operation
nim-websock copied to clipboard

Investigate weird closing behaviour when using TLS

Open dryajov opened this issue 4 years ago • 0 comments

As described in #57, when using TLS the socket doesn't write out the close code and reason, thus failing to close the connection cleanly. This has been worked around by adding a sleepAsync(10.millis) right before closing the socket to allow finish writing. This behaviour is unexpected and need to be further investigated as it is most likely a bug.

dryajov avatar Jun 12 '21 00:06 dryajov