2018年2月28日

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

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

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

posted @ 2018-02-28 18:06 王将军之武库 阅读(143) 评论(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 王将军之武库 阅读(1358) 评论(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 王将军之武库 阅读(283) 评论(0) 推荐(0) 编辑


Copyright © 2024 王将军之武库
Powered by .NET 9.0 on Kubernetes