net: don't clear all errors on close
Closing a socket clears the error queue of the entire thread, which seems to be a bit too invasive. Also I don't find any reason in the PR that added this.
This commit is contained in:
parent
65b350f112
commit
d06e6eec79
1 changed files with 0 additions and 1 deletions
|
|
@ -1006,7 +1006,6 @@ proc close*(socket: Socket) =
|
|||
try:
|
||||
when defineSsl:
|
||||
if socket.isSsl and socket.sslHandle != nil:
|
||||
ErrClearError()
|
||||
# Don't call SSL_shutdown if the connection has not been fully
|
||||
# established, see:
|
||||
# https://github.com/openssl/openssl/issues/710#issuecomment-253897666
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue