cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: (no subject)

From: Cris Putnam <cdputnam_at_us.ibm.com>
Date: Wed, 1 Feb 2006 07:55:34 -0500

Cris D. Putnam
 CURLOPT_TIMEOUT solved the issue. I set it for a 5 second timeout, and
made it adjustable via the INI file.

Thanks.
Cris

                                                                           
             Ralph Mitchell
             <ralphmitchell_at_gm
             ail.com> To
             Sent by: libcurl development
             curl-library-boun <curl-library_at_cool.haxx.se>
             ces_at_cool.haxx.se cc
                                                                           
                                                                   Subject
             01/31/2006 06:38 Re: (no subject)
             PM
                                                                           
                                                                           
             Please respond to
                  libcurl
                development
                                                                           
                                                                           

Have you looked at the various timeout options??

   CURLOPT_TIMEOUT

   CURLOPT_CONNECTTIMEOUT

Either of those should break you out of a hung connection.

Ralph Mitchell

On 1/31/06, Cris Putnam <cdputnam_at_us.ibm.com> wrote:
>
>
> I am using the curl easy interface to automate authentication through
> firewalls. My application was designed to be single threaded and now I am
> running into a problem, it hangs if the network goes down during login.
>
> On testing, for example if a wireless user starts the login procedure
for
> 10 firewalls and it makes through 5 of them and then moves to an area
where
> the network is lost my app hangs.... on 6th login attempt and just stays
> hung....
>
> I suppose the curl_easy_perform(curl)call is a blocking call, right?
>
>
> Is there a specific curl error that gets thrown for no network
connection?
> Or something I can detect to break out of the login sequence?
>
>
>
> Cris D. Putnam
>

graycol.gif pic31004.gif ecblank.gif
Received on 2006-02-01