curl-library
Re: Problem with gethostbyname_r and https
Date: Wed, 19 Dec 2001 14:40:28 +0100 (MET)
On Mon, 17 Dec 2001, Gilles Talbot wrote:
> I use libcurl 7.9, on HP-UX 10.20.
First, try upgrading to the latest and greatest. I don't think that'll fix
your problems, but then again, you never know for sure!
> My application sends request to a http/https server.
> There is a thread created to send each request
> My application is supposed to send several requests at the same time.
> It works pretty good when i use http
> BUT : when i use https, most of the requests are OK, but sometimes, i
> have the following error : couldn't resolve host xxxxx
> with the CURLOPT_VERBOSE option, i saw that it is a problem on
> gethostbyname_r
> I tried making several requests in a single thread, and the problem does
> not occur.
> i've checked my compilation options, they look compatible with
> multi-thread
As has been said before: this is likely to be a problem with how threads work
on your particular platform. Other platforms have also shown problems similar
to this in the past, all with various forms of (non-working) thread
implementations.
libcurl is being used in multi-threaded programs by many people, which leads
me to believe that it is fairly multi-thread safe. If you can repeat your
problems on one of the platforms known to be stable systems multi-thread-wise
(Solaris, Linux and Windows all seem good), then I'll start considering this
a real issue. Until then, I can't but to think that this is a peculiar issue
with threads under HPUX 10. I'm sorry.
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2001-12-19