test2032: spurious failure caused by premature termination

Bug: http://curl.haxx.se/mail/lib-2012-11/0095.html
This commit is contained in:
Kamil Dudka 2012-10-15 21:42:33 +02:00
parent 7e87499213
commit 32be348af2
2 changed files with 4 additions and 2 deletions

View file

@ -207,7 +207,7 @@ int test(char *url)
}
if (state == NeedSocketForNewHandle) {
if (found_new_socket) {
if(!found_new_socket) {
fprintf(stderr, "Warning: socket did not open immediately for new "
"handle (trying again)\n");
continue;
@ -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;
}
}