mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
Get test 2032 working when using valgrind
If curl_multi_fdset() sets maxfd to -1, the socket detection loop is skipped and thus !found_new_socket is no cause for alarm.
This commit is contained in:
parent
32be348af2
commit
52af6e69f0
@ -207,7 +207,7 @@ int test(char *url)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (state == NeedSocketForNewHandle) {
|
if (state == NeedSocketForNewHandle) {
|
||||||
if(!found_new_socket) {
|
if(maxfd != -1 && !found_new_socket) {
|
||||||
fprintf(stderr, "Warning: socket did not open immediately for new "
|
fprintf(stderr, "Warning: socket did not open immediately for new "
|
||||||
"handle (trying again)\n");
|
"handle (trying again)\n");
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user