aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-01 18:12:26 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-01 18:12:26 +0000
commit7b9cf32e4ea2763c16a14c44ab5b4423e8a9aaa9 (patch)
treea6d9ae234de6e33ba6975bddc7e226c15a7d43a2
parent4eb568c37c922b829bf81173006761b0adc1f4db (diff)
downloadlibmicrohttpd-7b9cf32e4ea2763c16a14c44ab5b4423e8a9aaa9.tar.gz
libmicrohttpd-7b9cf32e4ea2763c16a14c44ab5b4423e8a9aaa9.zip
fix testcase, do not sleep if client is inactive
-rw-r--r--src/testcurl/daemontest_post_loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testcurl/daemontest_post_loop.c b/src/testcurl/daemontest_post_loop.c
index 0fe52e78..0539fde2 100644
--- a/src/testcurl/daemontest_post_loop.c
+++ b/src/testcurl/daemontest_post_loop.c
@@ -392,7 +392,7 @@ testExternalPost ()
392 if ((CURLM_OK == curl_multi_timeout (multi, &ctimeout)) && 392 if ((CURLM_OK == curl_multi_timeout (multi, &ctimeout)) &&
393 (ctimeout < timeout) && (ctimeout >= 0)) 393 (ctimeout < timeout) && (ctimeout >= 0))
394 timeout = ctimeout; 394 timeout = ctimeout;
395 if (c == NULL) 395 if ( (c == NULL) || (running == 0) )
396 timeout = 0; /* terminate quickly... */ 396 timeout = 0; /* terminate quickly... */
397 tv.tv_sec = timeout / 1000; 397 tv.tv_sec = timeout / 1000;
398 tv.tv_usec = (timeout % 1000) * 1000; 398 tv.tv_usec = (timeout % 1000) * 1000;