This commit is contained in:
Jack Robison 2018-08-01 21:05:30 -04:00
parent 293a57156a
commit d3797b3479
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -144,9 +144,9 @@ class SCPDCommandRunner(object):
self._unsupported_actions = {} self._unsupported_actions = {}
self._registered_commands = {} self._registered_commands = {}
self._reactor = reactor self._reactor = reactor
self._agent = Agent(reactor, connectTimeout=1)
self._http_client = HTTPClient(self._agent, data_to_body_producer=StringProducer)
self._connection_pool = DirtyPool(reactor) self._connection_pool = DirtyPool(reactor)
self._agent = Agent(reactor, connectTimeout=1, pool=self._connection_pool)
self._http_client = HTTPClient(self._agent, data_to_body_producer=StringProducer)
@defer.inlineCallbacks @defer.inlineCallbacks
def _discover_commands(self, service): def _discover_commands(self, service):