Ignore EvError in asyncdispatch.poll(...) for non-windows systems, so that exceptions can be raised from send(...) and recv(...)

This commit is contained in:
Kay Zheng 2015-04-12 12:59:56 +08:00
commit a7df3ffbe0

View file

@ -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