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

Method handle_read_event

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

Source from the content-addressed store, hash-verified

414 print('%s: %s' % (type, message))
415
416 def handle_read_event(self):
417 if self.accepting:
418 # accepting sockets are never connected, they "spawn" new
419 # sockets that are connected
420 self.handle_accept()
421 elif not self.connected:
422 if self.connecting:
423 self.handle_connect_event()
424 self.handle_read()
425 else:
426 self.handle_read()
427
428 def handle_connect_event(self):
429 err = self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR)

Callers 2

readFunction · 0.45
readwriteFunction · 0.45

Calls 3

handle_acceptMethod · 0.95
handle_connect_eventMethod · 0.95
handle_readMethod · 0.95

Tested by

no test coverage detected