2018年2月28日

摘要: #每个connector都有一个 Connection对象@implementer(interfaces.ITCPTransport, interfaces.ISystemHandle) class Connection(_TLSConnectionMixin, abstract.FileDescriptor, _SocketCloser, _AbortingM... 阅读全文

posted @ 2018-02-28 22:47 王将军之武库 阅读(268) 评论(0) 推荐(0)

摘要: @implementer(interfaces.IStreamClientEndpoint)class TCP4ClientEndpoint(object): """ TCP client endpoint with an IPv4 configuration. """ def __init__(s 阅读全文

posted @ 2018-02-28 18:06 王将军之武库 阅读(149) 评论(0) 推荐(0)

摘要: def _next_request_from_scheduler(self, spider):#在引擎中处理一个请求 slot = self.slot request = slot.scheduler.next_request() if not request: return d = self._downlo... 阅读全文

posted @ 2018-02-28 16:15 王将军之武库 阅读(1384) 评论(0) 推荐(0)

摘要: #reactorbase的主循环 def mainLoop(self): while self._started: try: while self._started: # Advance simulation time in delayed event ... 阅读全文

posted @ 2018-02-28 15:44 王将军之武库 阅读(295) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3