Merge pull request #138 from vbanos/increase-connection-pool-size

Increase remote_connection_pool maxsize
This commit is contained in:
Noah Levitt 2019-09-23 10:09:05 -07:00 committed by GitHub
commit da9c4b0b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -777,7 +777,7 @@ class SingleThreadedMitmProxy(http_server.HTTPServer):
self.bad_hostnames_ports_lock = RLock()
self.remote_connection_pool = PoolManager(
num_pools=max((options.max_threads or 0) // 6, 400))
num_pools=max((options.max_threads or 0) // 6, 400), maxsize=6)
if options.onion_tor_socks_proxy:
try: