asyncdispatch: fix erroneous set construction (#13765)
These constants were defined as `cint`. They can be huge on certain systems, such as Haiku, and trigger out-of-bounds errors in asyncdispatch. Ref #13764.
This commit is contained in:
parent
e50441ab33
commit
2da438c33b
1 changed files with 3 additions and 1 deletions
|
|
@ -1407,7 +1407,9 @@ else:
|
||||||
MSG_NOSIGNAL)
|
MSG_NOSIGNAL)
|
||||||
if res < 0:
|
if res < 0:
|
||||||
let lastError = osLastError()
|
let lastError = osLastError()
|
||||||
if lastError.int32 notin {EINTR, EWOULDBLOCK, EAGAIN}:
|
if lastError.int32 != EINTR and
|
||||||
|
lastError.int32 != EWOULDBLOCK and
|
||||||
|
lastError.int32 != EAGAIN:
|
||||||
if flags.isDisconnectionError(lastError):
|
if flags.isDisconnectionError(lastError):
|
||||||
retFuture.complete()
|
retFuture.complete()
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue