diff --git a/warcprox/warcproxy.py b/warcprox/warcproxy.py index 2f63a77..b6a0943 100644 --- a/warcprox/warcproxy.py +++ b/warcprox/warcproxy.py @@ -483,6 +483,7 @@ class WarcProxy(SingleThreadedWarcProxy, warcprox.mitmproxy.PooledMitmProxy): def server_close(self): self.logger.info('shutting down') http_server.HTTPServer.server_close(self) + self.remote_connection_pool.clear() def handle_error(self, request, client_address): self.logger.warn(