cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH 1/2] eliminate a race condition in Curl_resolv_timeout()

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Fri, 2 Apr 2010 14:04:06 +0200

On Mon March 29 2010 06:49:29 souvik.datta_at_wipro.com wrote:
> I am using following timeouts in my application:
>
> CURLOPT_CONNECTTIMEOUT
> CURLOPT_LOW_SPEED_LIMIT
> CURLOPT_LOW_SPEED_TIME
>
> There is no custom SIGNAL handler in my application for time outs.
>
> Pl. find the lib/curl_config.h file as attached.

If the timeout hasn't occurred in Curl_resolv(), we may uninstall the signal
handler, before we deactivate the still running alarm. The attached patch
should fix it.

Kamil

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2010-04-02