You are here: Re: curl timeout problem « PHP Programming Language « IT news, forums, messages
Re: curl timeout problem

Posted by rahul sinha on 04/27/07 07:00

On Apr 26, 2:55 pm, news <a...@inetia.pl> wrote:
> Hi,
> I'm having a problem with the cURL library.
> It doesn't seem to obey the 'timeout' parameters.
Can you show me the code ..

>
> I set the CURLOPT_CONNECTTIMEOUT to, say, 1 second,
> and CURLOPT_TIMEOUT to whatever value.
>
> Then I'm fetching (via a GET request) some page
> from a _nonexistent_ domain - and I have to wait around 4 seconds
> for the timeout error to show up. (name lookup error)
>
> So - what's the use of CONNECTTIMEOUT and TIMEOUT?
> Why I have to wait 4 seconds, while I set the connect timeout
> to 1 second?
>
> TIA, Regards
> -news

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация