cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl crashes when running inseparate thread with request timeout set

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 25 May 2010 22:30:21 +0200 (CEST)

On Tue, 25 May 2010, Никита Дорохин wrote:

> I have an application with 2 thread running. At some point first thread
> sends a message to second thread to get HTTP page. When second thread
> receives the message it initializes libcurl and sends HTTP GET request with
> CURLOPT_TIMEOUT set to 30 sec.

The stock synchronous resolver and signals not disabled? Then that's the
reason: signals and threads don't mix very well...

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-25