cURL / Mailing Lists / curl-users / Single Mail

curl-users

Using libcurl in a multithreaded app

From: <securehell_at_hushmail.com>
Date: Thu, 08 Jun 2006 11:21:24 -0400

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi group,

I am writing a multithreaded app that uses libcurl to download from
various links. Each thread in the app downloads a link using its
own libcurl functions (i.e. curl_easy_init(), curl_easy_setopt(),
curl_easy_perform() and curl_easy_cleanup()).

My question: Can I globally set the curl options or do I have to go
through the procedure of setting the curl options for each thread
that calls curl_easy_perform()? I am experiencing intermittent
crashes due to malloc problems (all of my mallocs are checked) and
I am trying to optimize the app in any way possible.

Any advice would be apprectiated.

SH
-----BEGIN PGP SIGNATURE-----
Note: This signature can be verified at https://www.hushtools.com/verify
Version: Hush 2.5

wkYEARECAAYFAkSIQRQACgkQRBFe1uc9INoe2wCfVoEB5LmSgqo1KYj1D7tJIbTH5isA
n2tomxgd3/DJmR8RurWy4ybtCZor
=GNdQ
-----END PGP SIGNATURE-----
Received on 2006-06-08