I'm using Privoxy with Tor forwarding with Ruby's Mechanize.
In local single tests everything works fine.
But when in production with multiple threads for scraping, I get thousands of the following error:
Net::ReadTimeout with #<Socket:(closed)>
Setting keep-alive-timeout to a higher value delays the problem a bit but it still occurs.
It seems related to Mechanize use of ConnectionPool ruby gem to reuse connections.
Any configuration or change that could help?
replaced privoxy with https://github.com/oyyd/http-proxy-to-socks without any issues
A log excerpt would probably be helpful to debug this (if you still intend to use Privoxy).
https://www.privoxy.org/user-manual/contact.html
I got the same error with
http-proxy-to-socksso I think the problem is with Tor. I've updated with the version from their Ubuntu PPA and still got the issue.Is there a way privoxy can recover from these socket closed error from Tor?
I'll collect more logs
Without a Privoxy log excerpt it's unclear to me what exactly happens.
Does setting keep-alive-timeout to 0 work around the problem?
I've tried
keep-alive-timeoutwith 0 and it didn't helpis debug 1024 enough? I'm enabling it now
That's not enough, please enable all the debug flags suggested at:
https://www.privoxy.org/user-manual/contact.html
Closing due to lack of information.