Ignore EvError in asyncdispatch.poll(...) for non-windows systems, so that exceptions can be raised from send(...) and recv(...)
This commit is contained in:
parent
28ecf72f79
commit
a7df3ffbe0
1 changed files with 3 additions and 3 deletions
|
|
@ -882,9 +882,9 @@ else:
|
||||||
let data = PData(info.key.data)
|
let data = PData(info.key.data)
|
||||||
assert data.fd == info.key.fd.TAsyncFD
|
assert data.fd == info.key.fd.TAsyncFD
|
||||||
#echo("In poll ", data.fd.cint)
|
#echo("In poll ", data.fd.cint)
|
||||||
if EvError in info.events:
|
# There may be EvError here, but we handle them in callbacks,
|
||||||
closeSocket(data.fd)
|
# so that exceptions can be raised from `send(...)` and
|
||||||
continue
|
# `recv(...)` routines.
|
||||||
|
|
||||||
if EvRead in info.events:
|
if EvRead in info.events:
|
||||||
# Callback may add items to ``data.readCBs`` which causes issues if
|
# Callback may add items to ``data.readCBs`` which causes issues if
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue