コード例 #1
0
ファイル: HTTPServer.py プロジェクト: PyroSamurai/apt-p2p
 def registerProducer(self, producer, streaming):
     ThrottlingProtocol.registerProducer(self, producer, streaming)
     streamType = getattr(producer, 'stream', None)
     if isinstance(streamType, UploadStream):
         self.throttle = True
コード例 #2
0
ファイル: HTTPServer.py プロジェクト: norpol/apt-p2p
 def registerProducer(self, producer, streaming):
     ThrottlingProtocol.registerProducer(self, producer, streaming)
     streamType = getattr(producer, 'stream', None)
     if isinstance(streamType, UploadStream):
         self.throttle = True