cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SSL with NSS not properly timing out

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Wed, 08 May 2013 14:01:34 +0200

On Tuesday, May 07, 2013 23:44:12 Daniel Stenberg wrote:
> On Tue, 7 May 2013, David Strauss wrote:
> >> What about using PR_INTERVAL_NO_WAIT instead of -1?
> >
> > I'm not sure there's a way for that to work efficiently without waiting
> > for
> > an event from NSS, if that's possible.
>
> That's already done before the function is called in the first place. The
> the GnuTLS and OpenSSL versions of that function for example are completely
> non-blocking.

So are the NSS recv/send functions. Only the handshake still blocks with NSS.
I guess that David needs the following fix:

https://github.com/bagder/curl/commit/9d0af301

Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-05-08