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

Method handle_read

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

Source from the content-addressed store, hash-verified

396 chunks = []
397
398 def handle_read(fd, events):
399 chunks.append(fd.recv(1024))
400 if fd is client:
401 self.io_loop.remove_handler(server)
402 else:
403 self.io_loop.remove_handler(client)
404
405 self.io_loop.add_handler(client, handle_read, self.io_loop.READ)
406 self.io_loop.add_handler(server, handle_read, self.io_loop.READ)

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
remove_handlerMethod · 0.45

Tested by

no test coverage detected