cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl + libevent2: Stalling if no data is received/written [new timeout patch]

From: Constantine Sapuntzakis <csapuntz_at_gmail.com>
Date: Thu, 26 Aug 2010 10:05:31 -0700

> B) make sure the expire call from the threaded resolver is done thread-safe

It's thread safe. :-)

The only code executed in a background thread is hostthre.c is
getaddrinfo_thread and gethostbyname_thread. Everything else happens
in whatever thread is calling into the curl multi interface.

Those functions in hostthre.c call the following functions:

Curl_ipv4_resolve_r, Curl_getaddrinfo_ex, Curl_mutex_acquire, Curl_mutex_release

Best,
-Costa
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-08-26