1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-23 11:03:54 +00:00

hold a reference to backwards compatible _contextFactory

This commit is contained in:
Daniel Graña 2014-06-25 04:21:56 -03:00
parent bfe02b019e
commit d48158427a

View File

@ -118,6 +118,7 @@ class TunnelingAgent(Agent):
super(TunnelingAgent, self).__init__(reactor, contextFactory,
connectTimeout, bindAddress, pool)
self._proxyConf = proxyConf
self._contextFactory = contextFactory
def _getEndpoint(self, scheme, host, port):
return TunnelingTCP4ClientEndpoint(self._reactor, host, port,