MCPcopy Index your code
hub / github.com/RustPython/RustPython / handle_expt_event

Method handle_expt_event

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

Source from the content-addressed store, hash-verified

455 self.handle_write()
456
457 def handle_expt_event(self):
458 # handle_expt_event() is called if there might be an error on the
459 # socket, or if there is OOB data
460 # check for the error condition first
461 err = self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR)
462 if err != 0:
463 # we can get here when select.select() says that there is an
464 # exceptional condition on the socket
465 # since there is an error, we'll go ahead and close the socket
466 # like we would in a subclassed handle_read() that received no
467 # data
468 self.handle_close()
469 else:
470 self.handle_expt()
471
472 def handle_error(self):
473 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