mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
close connection to proxy client after proxying the request, seems to solve hanging connection issue (see comment in code)
This commit is contained in:
parent
771383d0a6
commit
d38ab08086
@ -212,6 +212,11 @@ class WarcProxyHandler(warcprox.mitmproxy.MitmProxyHandler):
|
||||
h.close()
|
||||
self._proxy_sock.close()
|
||||
|
||||
# XXX Close connection to proxy client. Doing this because we were
|
||||
# seeing some connection hangs and this seems to solve that problem.
|
||||
# Not clear what the correct, optimal behavior is.
|
||||
self.connection.close()
|
||||
|
||||
recorded_url = RecordedUrl(url=self.url, request_data=req,
|
||||
response_recorder=h.recorder, remote_ip=remote_ip,
|
||||
warcprox_meta=warcprox_meta,
|
||||
|
Loading…
x
Reference in New Issue
Block a user