From 407e89025844cfd8261aa43e4fdbea33e244c801 Mon Sep 17 00:00:00 2001 From: Vangelis Banos Date: Sat, 21 Sep 2019 09:29:19 +0000 Subject: [PATCH] Set connection pool maxsize=6 --- warcprox/mitmproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warcprox/mitmproxy.py b/warcprox/mitmproxy.py index 929bc49..6b32a40 100644 --- a/warcprox/mitmproxy.py +++ b/warcprox/mitmproxy.py @@ -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), maxsize=10) + num_pools=max((options.max_threads or 0) // 6, 400), maxsize=6) if options.onion_tor_socks_proxy: try: