Fixed bugs 760475, 953599, and 1519.

This commit is contained in:
Josiah Carlson 2008-07-07 04:51:46 +00:00
parent 3b1e6b2f83
commit ff5f42088b
3 changed files with 14 additions and 6 deletions

View file

@ -99,8 +99,10 @@ def readwrite(obj, flags):
obj.handle_read_event()
if flags & select.POLLOUT:
obj.handle_write_event()
if flags & (select.POLLERR | select.POLLHUP | select.POLLNVAL):
if flags & (select.POLLERR | select.POLLNVAL):
obj.handle_expt_event()
if flags & select.POLLHUP:
obj.handle_close_event()
except (ExitNow, KeyboardInterrupt, SystemExit):
raise
except:
@ -467,7 +469,7 @@ class dispatcher:
),
'error'
)
self.close()
self.handle_close()
def handle_expt(self):
self.log_info('unhandled exception', 'warning')