libmicrohttpd

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

commit 54a4333bc6373eb0f3dafc6edb5581d9c39ca712
parent b8057a43d63e37891a4d34a8333c2b0181108b06
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Wed, 19 Oct 2016 19:59:59 +0300

test_upgrade: minor fix

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

diff --git a/src/microhttpd/test_upgrade_common.c b/src/microhttpd/test_upgrade_common.c @@ -482,6 +482,8 @@ run_mhd_select_loop (struct MHD_Daemon *daemon) abort (); (void) MHD_get_timeout (daemon, &to); + if (1000 < to) + to = 1000; tv.tv_sec = to / 1000; tv.tv_usec = 1000 * (to % 1000); if (0 > MHD_SYS_select_ (max_fd + 1, @@ -537,6 +539,8 @@ run_mhd_epoll_loop (struct MHD_Daemon *daemon) FD_SET (ep, &rs); (void) MHD_get_timeout (daemon, &to); + if (1000 < to) + to = 1000; tv.tv_sec = to / 1000; tv.tv_usec = 1000 * (to % 1000); select (ep + 1,