libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 7b9cf32e4ea2763c16a14c44ab5b4423e8a9aaa9
parent 4eb568c37c922b829bf81173006761b0adc1f4db
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  1 Nov 2011 18:12:26 +0000

fix testcase, do not sleep if client is inactive

Diffstat:
Msrc/testcurl/daemontest_post_loop.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/testcurl/daemontest_post_loop.c b/src/testcurl/daemontest_post_loop.c @@ -392,7 +392,7 @@ testExternalPost () if ((CURLM_OK == curl_multi_timeout (multi, &ctimeout)) && (ctimeout < timeout) && (ctimeout >= 0)) timeout = ctimeout; - if (c == NULL) + if ( (c == NULL) || (running == 0) ) timeout = 0; /* terminate quickly... */ tv.tv_sec = timeout / 1000; tv.tv_usec = (timeout % 1000) * 1000;