aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-03-31 14:10:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-03-31 14:10:54 +0000
commit346992c366bf0504211479bd16120d1ad188befb (patch)
treef1c885d10985f30c9eaddfd3c2e8b064629a96c3 /tests/libtest
parentab4086bc244bf3267976e9f0193e5ed4430190d8 (diff)
Attempt to make this code more forgiving for systems that doesn't detect
the failed connect "immediately".
Diffstat (limited to 'tests/libtest')
-rw-r--r--tests/libtest/lib504.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/libtest/lib504.c b/tests/libtest/lib504.c
index df2e3ff2c..5ba9362bb 100644
--- a/tests/libtest/lib504.c
+++ b/tests/libtest/lib504.c
@@ -20,7 +20,7 @@ int test(char *URL)
int running;
int max_fd;
int rc;
- int loop=100;
+ int loop=10;
curl_global_init(CURL_GLOBAL_ALL);
c = curl_easy_init();
@@ -44,7 +44,7 @@ int test(char *URL)
interval.tv_usec = 0;
fprintf(stderr, "curl_multi_perform()\n");
-
+
do {
res = curl_multi_perform(m, &running);
} while (res == CURLM_CALL_MULTI_PERFORM);
@@ -79,10 +79,10 @@ int test(char *URL)
}
rc = select(max_fd+1, &rd, &wr, &exc, &interval);
fprintf(stderr, "select returned %d\n", rc);
-
+
/* we only allow a certain number of loops to avoid hanging here
forever */
- } while(rc && (--loop>0));
+ } while(--loop>0);
}
curl_multi_remove_handle(m, c);