mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
fixes asyncnet on bsds
This commit is contained in:
@@ -265,14 +265,17 @@ when defineSsl:
|
||||
ErrClearError()
|
||||
# Call the desired operation.
|
||||
opResult = op
|
||||
|
||||
let err =
|
||||
if opResult < 0:
|
||||
getSslError(socket, opResult.cint)
|
||||
else:
|
||||
SSL_ERROR_NONE
|
||||
# Send any remaining pending SSL data.
|
||||
await sendPendingSslData(socket, flags)
|
||||
|
||||
# If the operation failed, try to see if SSL has some data to read
|
||||
# or write.
|
||||
if opResult < 0:
|
||||
let err = getSslError(socket, opResult.cint)
|
||||
let fut = appeaseSsl(socket, flags, err.cint)
|
||||
yield fut
|
||||
if not fut.read():
|
||||
|
||||
Reference in New Issue
Block a user