summaryrefslogtreecommitdiffstats
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-03-21 19:26:00 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2004-03-21 19:26:00 (GMT)
commit9303777f224c536ce8be9297d208f46527912b46 (patch)
treecaa2dab035057ee50d6244b44a85fd0263671e31 /Lib/asyncore.py
parenta982c445430355b1e162a2083d7caa28a67c70ba (diff)
downloadcpython-9303777f224c536ce8be9297d208f46527912b46.zip
cpython-9303777f224c536ce8be9297d208f46527912b46.tar.gz
cpython-9303777f224c536ce8be9297d208f46527912b46.tar.bz2
[Part of patch #909005] Handle POLLPRI flag, and various errors cases. Fixes bug #887279
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index c886f92..588f99b 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -82,10 +82,12 @@ def write(obj):
def readwrite(obj, flags):
try:
- if flags & select.POLLIN:
+ if flags & (select.POLLIN | select.POLLPRI):
obj.handle_read_event()
if flags & select.POLLOUT:
obj.handle_write_event()
+ if flags & (select.POLLERR | select.POLLHUP | select.POLLNVAL):
+ obj.handle_expt_event()
except ExitNow:
raise
except: