在ioloop.py中,有这样一个函数。
def add_handler(self, fd, handler, events):
"""Registers the given handler to receive the given events for fd."""
self._handlers[fd] = handler
self._impl.register(fd, events | self.ERROR)
这是什么意思?每个请求都会触发add_handler,还是只在初始化时触发一次?
每个socket连接都会生成一个文件描述符,还是只生成一次?
ioloop和iostream之间的关系是什么?
httpserver如何与ioloop和iostream配合工作?
是否有工作流程图,以便清晰地查看?
对不起,我有些困惑。
任何链接、建议或提示都很有帮助。非常感谢 :)