A while ago on or-talk@, Juliusz Chroboczek <[EMAIL PROTECTED]> wrote:
> >> FWIW, if Polipo can detect such a situation (either because we haven't > >> reached the Content-Length the server declared, or because there was > >> an unterminated chunk), it will refetch the object. > > > The responses in question are completely empty, there's not a > > single HTTP header and of course the nothingness isn't chunked > > either. > > Then you should get a « 502 Server dropped connection » error. If you > don't, please report it as a bug. It took me a while to look into this, but better late than never. One way to reproduce this, or at least a similar looking problem, is to request something from an existing server using a port that isn't open and waiting about two minutes for Tor to timeout the connection: [EMAIL PROTECTED] ~ $time http_proxy=http://10.0.0.1:8123/ lynx -head -dump http://tor.fabiankeil.de.zwiebelsuppe.exit/ Looking up 10.0.0.1:8123 Making HTTP connection to 10.0.0.1:8123 Sending HTTP request. HTTP request sent; waiting for response. Alert!: Unexpected network read error; connection aborted. Can't Access `http://tor.fabiankeil.de.zwiebelsuppe.exit/' Alert!: Unable to access document. lynx: Can't access startfile real 2m0.016s user 0m0.019s sys 0m0.012s As a workaround one can set http.c's serverTimeout above Tor's timeout. With: diff -ruN polipo-1.0.3/http.c polipo-1.0.3-timeout-patch/http.c --- polipo-1.0.3/http.c 2007-10-06 15:43:16.000000000 +0200 +++ polipo-1.0.3-timeout-patch/http.c 2007-10-10 19:58:33.000000000 +0200 @@ -27,7 +27,7 @@ int proxyPort = 8123; int clientTimeout = 120; -int serverTimeout = 90; +int serverTimeout = 130; int serverIdleTimeout = 45; int bigBufferSize = (32 * 1024); I get: [EMAIL PROTECTED] ~ $time http_proxy=http://10.0.0.1:8123/ lynx -head -dump http://tor.fabiankeil.de.zwiebelsuppe.exit/ HTTP/1.1 504 Connect to tor.fabiankeil.de.zwiebelsuppe.exit:80 failed: General S OCKS server failure Connection: close Date: Wed, 10 Oct 2007 18:07:51 GMT Content-Type: text/html Content-Length: 695 Expires: 0 Cache-Control: no-cache Pragma: no-cache real 1m59.597s user 0m0.010s sys 0m0.010s Fabian
signature.asc
Description: PGP signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Polipo-users mailing list Polipo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/polipo-users