curl-library
Re: (no subject)
Date: Tue, 31 Jan 2006 17:38:16 -0600
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
>
Received on 2006-02-01