Signed-off-by: David Krause <enthus1ast@users.noreply.github.com>
This commit is contained in:
parent
b0b9a3e5fa
commit
60dd38c502
1 changed files with 2 additions and 0 deletions
|
|
@ -1733,6 +1733,8 @@ when defined(windows) or defined(nimdoc):
|
||||||
proc (fd: AsyncFD, bytesCount: DWORD, errcode: OSErrorCode) =
|
proc (fd: AsyncFD, bytesCount: DWORD, errcode: OSErrorCode) =
|
||||||
if not retFuture.finished:
|
if not retFuture.finished:
|
||||||
if errcode == OSErrorCode(-1):
|
if errcode == OSErrorCode(-1):
|
||||||
|
const SO_UPDATE_CONNECT_CONTEXT = 0x7010
|
||||||
|
socket.SocketHandle.setSockOptInt(SOL_SOCKET, SO_UPDATE_CONNECT_CONTEXT, 1) # 15022
|
||||||
retFuture.complete()
|
retFuture.complete()
|
||||||
else:
|
else:
|
||||||
retFuture.fail(newException(OSError, osErrorMsg(errcode)))
|
retFuture.fail(newException(OSError, osErrorMsg(errcode)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue