MCPcopy Create free account
hub / github.com/EasyIME/PIME / handle_connection

Method handle_connection

python/python3/tornado/test/ioloop_test.py:289–293  ·  view source on GitHub ↗
(fd, events)

Source from the content-addressed store, hash-verified

287 fds = []
288
289 def handle_connection(fd, events):
290 fds.append(fd)
291 conn, addr = server_sock.accept()
292 conn.close()
293 self.stop()
294
295 self.io_loop.add_handler(server_sock, handle_connection, IOLoop.READ)
296 with contextlib.closing(socket.socket()) as client_sock:

Callers

nothing calls this directly

Calls 4

acceptMethod · 0.80
appendMethod · 0.45
closeMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected