mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Fixed bugs 760475, 953599, and 1519.
This commit is contained in:
parent
3b1e6b2f83
commit
ff5f42088b
3 changed files with 14 additions and 6 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue