mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-03-03 04:10:38 +00:00
Fix EAGAIN issue in acceptLoop().
This commit is contained in:
parent
63041b2d8f
commit
783f84aa4b
@ -1477,6 +1477,10 @@ else:
|
||||
let err = osLastError()
|
||||
if int(err) == EINTR:
|
||||
continue
|
||||
elif int(err) == EAGAIN:
|
||||
# This error appears only when server get closed, while acceptLoop()
|
||||
# reader callback is already scheduled.
|
||||
break
|
||||
else:
|
||||
## Critical unrecoverable error
|
||||
raiseTransportOsError(err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user