nim-websock
nim-websock copied to clipboard
Investigate weird closing behaviour when using TLS
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.