cURL / Mailing Lists / curl-library / Single Mail

curl-library

Multithreaded HTTP POST to UPLOAD data

From: Raghu PV <raghupv30_at_gmail.com>
Date: Wed, 12 Aug 2009 00:28:03 +0100

Hi,

Recently i started using libcurl 7.15.5 version on Redhat Linux 5 system to
perform HTTP POST for upload test.
I have coded my application using pthreads to have 3 threads and each thread
does HTTP POST upload to the same URL using "easy" interface of libcurl.
Using pthreads, i am trying acheive the initiation of data transfer from 3
threads at the same time.
When the threads execute "curl_easy_perform()" concurrently, I find
segmentation violation.GDB with the core dump points that curl_escape() call
raises signal 11

Is libcurl thread-safe to implement applications like this? are the
functions like curl_escape() and curl_easy_perform() are implemented to be
rentrant code?
Any thoughts how to fix this problem?
if the latest version of libcurl might solve the problem then how do i
install latest libcurl shared library?

Thanks in advance,

-Raghu
Received on 2009-08-12