MCPcopy Index your code
hub / github.com/python/cpython / handle_expt_event

Method handle_expt_event

Lib/test/support/asyncore.py:447–460  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

445 self.handle_write()
446
447 def handle_expt_event(self):
448 # handle_expt_event() is called if there might be an error on the
449 # socket, or if there is OOB data
450 # check for the error condition first
451 err = self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR)
452 if err != 0:
453 # we can get here when select.select() says that there is an
454 # exceptional condition on the socket
455 # since there is an error, we'll go ahead and close the socket
456 # like we would in a subclassed handle_read() that received no
457 # data
458 self.handle_close()
459 else:
460 self.handle_expt()
461
462 def handle_error(self):
463 nil, t, v, tbinfo = compact_traceback()

Callers 2

_exceptionFunction · 0.80
readwriteFunction · 0.80

Calls 3

handle_closeMethod · 0.95
handle_exptMethod · 0.95
getsockoptMethod · 0.45

Tested by

no test coverage detected