cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Timeout for TLS (using WinSSL)

From: Marcus Ilgner <marcus.ilgner_at_gmail.com>
Date: Fri, 4 Apr 2014 17:11:21 +0200

On Fri, Apr 4, 2014 at 2:28 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Fri, 4 Apr 2014, Marcus Ilgner wrote:
>
>> using libcurl 7.36 on Windows, compiled with WinSSL, I get a timeout when
>> connecting to a HTTPS URL. Looking at the Wireshark dump, I can see:
>
>
> Can you just clarify if you get the problem at the same spot as Edward (in
> bug #1352) does?
>
> I have to admit that it looks wrong to time-out on that line like that so we
> need to adjust it somehow. I'm just not very fluent in those APIs so while I
> can help out with the libcurl architecture stuff, I'm not the best windows
> dev to fix this problem all the way.
>

Looks like this is a different issue. I have now linked against
OpenSSL instead of WinSSL and am experiencing the same behaviour. It
seems to be somehow related to a race condition because if I set a
breakpoint at http.c:1355 -
https://github.com/bagder/curl/blob/master/lib/http.c#L1355 - and
simply step through it, it works.
I hope to be able to invest some personal time over the weekend to
look into it more closely.
The application uses the multi interface using custom timer, read,
write and socket functions but since everything works w/o SSL and they
don't seem to be called during SSL handshake I'll go out on a limb and
say it's not due to their implementation.

All the best
Marcus
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-04-04