mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
Address unit test failure in Python 3.4
This commit is contained in:
parent
3bb9355662
commit
435b0ec24b
@ -250,7 +250,7 @@ class MitmProxyHandler(http_server.BaseHTTPRequestHandler):
|
||||
pool_kwargs={'maxsize': 100})
|
||||
|
||||
self._remote_server_conn = self._conn_pool._get_conn()
|
||||
if self._remote_server_conn.sock is None:
|
||||
if is_connection_dropped(self._remote_server_conn):
|
||||
if self.onion_tor_socks_proxy_host and self.hostname.endswith('.onion'):
|
||||
self.logger.info(
|
||||
"using tor socks proxy at %s:%s to connect to %s",
|
||||
|
Loading…
x
Reference in New Issue
Block a user