cURL / Mailing Lists / curl-library / Single Mail


RE: Test 2032 failing with NSS backend

From: Joe Mason <>
Date: Mon, 15 Oct 2012 16:52:18 +0000

> From: Kamil Dudka []
> > This warning is probably significant. There may be something wrong with
> > the
> > logic of the test when the socket doesn't open immediately.
> Not that I understand the logic of the test, but isn't the condition inverted
> by mistake?

It sure is! The effect is that it goes through the loop one extra time - the first time through the loop, it will get a new socket, print the bogus warning, and then run through the loop again without updating "state" - the next time through, no new socket will open so it will skip the warning and update "state". Good catch. This could have a problem in weird corner cases where a new socket IS opened the second time through the loop, but most of the time it's just an inefficiency.

> I think the test terminates prematurely in certain cases. The following patch
> makes the test-suite running on my box:
> --- a/tests/libtest/libntlmconnect.c
> +++ b/tests/libtest/libntlmconnect.c
> @@ -234,7 +234,7 @@ int test(char *url)
> /* if there's no timeout and we get here on the last handle, we may
> already have read the last part of the stream so waiting makes no
> sense */
> - if(num_handles == MAX_EASY_HANDLES) {
> + if(!running && num_handles == MAX_EASY_HANDLES) {
> break;
> }
> }

Looks reasonable. I'm not really sure how the "running" logic of multi_perfom works, though.

This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

List admin:
Received on 2012-10-15