diff options
-rw-r--r-- | Lib/asyncore.py | 4 |
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: |