cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SSL with NSS not properly timing out

From: David Strauss <david_at_davidstrauss.net>
Date: Tue, 7 May 2013 14:19:32 -0700

Here are the PR_Recv API docs [1]. Also, according to the
PRIntervalTime docs [2], it should be invoked with
PR_INTERVAL_NO_TIMEOUT for no timeout. PR_INTERVAL_NO_TIMEOUT is
equivalent to the current value of -1.

[1] https://developer.mozilla.org/en-US/docs/PR_Recv
[2] https://developer.mozilla.org/en-US/docs/PRIntervalTime

On Tue, May 7, 2013 at 2:14 PM, David Strauss <david_at_davidstrauss.net> wrote:
> This -1 timeout is also in the current master:
> https://github.com/bagder/curl/blob/master/lib/nss.c#L1518
>
> On Tue, May 7, 2013 at 2:11 PM, David Strauss <david_at_davidstrauss.net> wrote:
>> It looks like PR_Recv(conn->ssl[num].handle, buf, (int)buffersize, 0,
>> -1) in nss_recv() (nss.c) may be the problem. That sets the timeout
>> for NSS to 4294967295.
>>
>> On Tue, May 7, 2013 at 1:57 PM, David Strauss <david_at_davidstrauss.net> wrote:
>>> On Tue, May 7, 2013 at 1:46 PM, David Strauss <david_at_davidstrauss.net> wrote:
>>>> NSS seems stuck in poll loop, which has been going on for hours
>>>
>>> Actually, I'm not sure it's NSS stuck there. The loop could be higher
>>> up. I just see an unending series of polls from strace.
>>>
>>> --
>>> David Strauss
>>> | david_at_davidstrauss.net
>>> | +1 512 577 5827 [mobile]
>>
>>
>>
>> --
>> David Strauss
>> | david_at_davidstrauss.net
>> | +1 512 577 5827 [mobile]
>
>
>
> --
> David Strauss
> | david_at_davidstrauss.net
> | +1 512 577 5827 [mobile]

-- 
David Strauss
   | david_at_davidstrauss.net
   | +1 512 577 5827 [mobile]
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-05-07