libmicrohttpd

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

commit 8f9567bb48387cd9d95e5d30914f945b106d2ee4
parent ff12c57202765ee6bdd27cb693070ffc49327057
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 28 Nov 2021 20:54:46 +0300

test_client_put_stop: Use longer timeout periods for select()

Diffstat:
Msrc/microhttpd/test_client_put_stop.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/test_client_put_stop.c b/src/microhttpd/test_client_put_stop.c @@ -825,7 +825,7 @@ _MHD_dumbClient_perform (struct _MHD_dumbClient *clnt) _MHD_dumbClient_get_fdsets (clnt, &maxMhdSk, &rs, &ws, &es); mhd_assert (now >= start); tv.tv_sec = TIMEOUTS_VAL - (now - start) + 1; - tv.tv_usec = 1000; + tv.tv_usec = 700 * 1000; if (-1 == select (maxMhdSk + 1, &rs, &ws, &es, &tv)) { #ifdef MHD_POSIX_SOCKETS @@ -1268,7 +1268,7 @@ performQueryExternal (struct MHD_Daemon *d, struct _MHD_dumbClient *clnt) if (MHD_YES != MHD_get_fdset (d, &rs, &ws, &es, &maxMhdSk)) mhdErrorExitDesc ("MHD_get_fdset() failed"); tv.tv_sec = 1; - tv.tv_usec = 100000; + tv.tv_usec = 800 * 1000; if (-1 == select (maxMhdSk + 1, &rs, &ws, &es, &tv)) { #ifdef MHD_POSIX_SOCKETS