Strangeness in keep-alive handling in txagentwithsocks
When performing requests over a socks proxy towards a HTTP site that sets the keep-alive header field connections wrapped with the SOCKS5ClientEndpoint stay hanging.
I am also not fully sure that this bug only happens with HTTP servers that set keep alive, but this is what has happened a few times while running some scans. It would always get stuck on sites that have the keep-alive flag set.
What I fear is that txagentwithsocks' monkey patching is creating some issues in treating keep-alive.
Steps to reproduce:
./bin/ooniprobe nettests/blocking/http_body_length.py -u http://lowes.com/
This will perform a request over the network and via the Tor SOCKS proxy bound to localhost. The one over Tor will stay hanging.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information