Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Explicitly close requests connections. #2147
I've also set the requests to
Motivation and Context
Performance and reduce resources.
Types of changes
This worked well for my Linux test. I tested with 2k,5k,and 11k proxies. I cannot produce any errors, and this should be an improvement for open sockets, and less requests.
These proxies are also totally sporadic. I tested with 126 good proxies (7 good ones duplicated) and my tests were also good, and successful. I think it takes a moment longer per request to close the two connections, but that's alright!