cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Multithreaded problem on HP-UX

From: Andrei Tarassov <andrei.tarassov_at_altiris.ee>
Date: Tue, 24 Aug 2004 16:12:00 +0300

Yes, I use the OpenSSL callbacks (hopefully correctly). I took the
openssl example under the link you provided and replaced their thread
working function with function from https.c to fetch https pages.

Sorry for confusing, I meant that -D_THREAD_SAFE helped me to make my
test program run on AIX. I do not think this will help on HP-UX. Could
there be any other similar issue?

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Tuesday, August 24, 2004 15:44
To: libcurl development
Subject: Re: Multithreaded problem on HP-UX

On Tue, 24 Aug 2004, Andrei Tarassov wrote:

> I have a problem with accessing HTTPS sites on HP-UX. The
> curl_easy_perform() call returns code 35, but the error buffer
contains no
> clue about what problem could have happened with SSL: all error codes
are 0.
> The problem occurs only in multithreaded programs. HTTP works fine.

You you set the OpenSSL callbacks?

         http://www.openssl.org/docs/crypto/threads.html#DESCRIPTION

> (thanks to folks who found that curl and ssl have to be compiled with
> -D_THREAD_SAFE).

Hm, I wonder if we should set this define by default... Currently this
is only
set for AIX builds and now you say HPUX needs it as well...

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-08-24