[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: PHP's CURL & Tor integration hangin
- To: or-talk@xxxxxxxxxxxxx
- Subject: Re: PHP's CURL & Tor integration hangin
- From: coderman <coderman@xxxxxxxxx>
- Date: Tue, 24 Jul 2007 16:27:03 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: or-talk-outgoing@xxxxxxxx
- Delivered-to: or-talk@xxxxxxxx
- Delivery-date: Tue, 24 Jul 2007 19:27:12 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=G24q5T6NxNdOi16OGvUCodK15Yoh6q8hB0NUnxl0cAaP+0qwhJmOsLGmsPEOqQ4L4JGyh8N1obmxvY1gvC3P9t4UNmeYUFr7bHCAWLxw9wXizVU+dLUJ93TLxx/kMXDRIVFTJ4KSHuSWyeDzLFiv+ofBLwNZ0j6TkVRPygCaPt0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=B9y+HmZeFZiyYfGpT0y1FR+rr4m+KjGmsSe9Zr8+NrrpugV4dW/wR1IOJ4r2Vn162cpGPySiHkYit5Mfv4dQlERJd6wGo9vMnVKIcFA64LX1MoLvtRovwCspMrSp+F4e2YLXjIkgjR2aLtZoK2WbVyGKW9/xcKOlZkGEcH0qu3M=
- In-reply-to: <20070721225227.48402.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- References: <20070721225227.48402.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-talk@xxxxxxxxxxxxx
On 7/21/07, Mr. Blue <trashdsfg@xxxxxxxxx> wrote:
Be aware that I did set connection timeout for CURL at
60 seconds ...
is this connect timeout, dns resolve timeout, transfer timeout, etc?
If site does load, then exit node is considered valid
and then I use it to POST data at 12 sites.
you're not doing anything obnoxious, are you? :)
Problem is that every approx. 15th - 30th time, it
hangs indefinitely at, for example, 7th site.
Even when node was checked at a begening before usage,
against 60sec connection timeout rule it can stuck at
any of sites.
Last time it did hang that way for 19 hours?!?
that sounds like a curl/php problem.
Obviously, it is up to Tor, because it is sending some
signal to reset 60sec CURL's rule for termination(so
PHP's CURL can't close it!!).
it is up to Tor? Tor will timeout a failed connect attempt at 120 or
180 seconds(?), but if you've got a connection, and the server doesn't
close it, and you never time it out, sure, it could hang open for
you need to fix the curl part to timeout transfers as well as connect/dns.