Re: Socket Timeout Documentation
| From: | Richard Lynch | Date: | Wed, 08 Jul 2009 17:39:36 +0000 |
| Subject: | Re: Socket Timeout Documentation | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44840@lists.php.net to get a copy of this message | ||
On Tue, July 7, 2009 4:48 am, Hannes Magnusson wrote:
> On Thu, Jul 2, 2009 at 01:01, Brian A.
> Seklecki<seklecki@noc.cfi.pgh.pa.us> wrote:
>> All:
>>
>> Perhaps we should clarify the socket tuneables such as:
>>
>> ; Default timeout for socket based streams (seconds)
>> default_socket_timeout = 60
>>
>> These are slightly ambiguous. e.g., we should clarify connect()
>> timeouts v.s. "idle" timeouts.
>
> Anyone that knows the answer to this?
IIRC:
The one in php.ini is for "connect" timeout.
The one you pass in as an arg is for "idle" timeout.
So to make the connection time out in a reasonable time-frame (60
seconds ain't it) you need to $old = set_ini(); open(); set_ini($old);
--
Some people ask for gifts here.
I just want you to buy an Indie CD for yourself:
http://cdbaby.com/search/from/lynch