cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Multi-therading problems with libcurl on Solaris?

From: Halsur Sreekantaswamy <hswamy_at_Basit.COM>
Date: Fri, 16 Jan 2004 09:51:57 -0500

----- Original Message -----
From: "Daniel Stenberg" <daniel-curl_at_haxx.se>
To: "libcurl Mailing list" <curl-library_at_lists.sourceforge.net>
Sent: Friday, January 16, 2004 3:29 AM
Subject: Re: Multi-therading problems with libcurl on Solaris?

> On Thu, 15 Jan 2004, Halsur Sreekantaswamy wrote:
>
> > I am planning to use libcurl in my multithreaded application (If I
cann't, I
> > have to find some other library very soon or develop an http client
myself).
> > If anyone has been able to get the example multithread.c working on
Solaris,
> > or has any other multitheraded application working, I would appreciate
if
> > you let me know what I need to do.
>
> I just tried it myself (again) to be really sure. It (the multithread.c
> example) works nicely on my Solaris 7 machine. I doubt Solaris 8 works a
lot
> different in this aspect.
>
> My guess (since you don't provide enough info): you're not providing the
> proper libraries (like -lpthread) to ld when you link the tool.
>
> So, implementing your own http client, while fun to do, will not change
> anything but will only show you the same problem but with a lot more
work...
>

I really don't want to spend time writing my own http client. libcurl fits
my needs,
but I have to resolve this multithreading problem I am facing.

I am attaching my Makefile and also multithread.c (I have just added error
checking for
curl_easy_perofrm). I have included lpthread library. As I mentioned
earlier, it compiles fine
and when I run it, it doesn't print the html output. Please go through my
Makefile and let me
know what I am missing.

I would appreciate your help.

Thanks,
--Halsur
> --
> Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
> [[ Do not send mails to this email address. They won't reach me. ]]
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
>

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-01-16