From a056cafb1f65d75de49e3832fe172695736315ae Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 5 Dec 2013 15:13:11 +0000 Subject: [PATCH] -fix timeout --- src/gns/gnunet-bcd.c | 2 +- src/hostlist/hostlist-server.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gns/gnunet-bcd.c b/src/gns/gnunet-bcd.c index 05eaecff4..5c57cbafd 100644 --- a/src/gns/gnunet-bcd.c +++ b/src/gns/gnunet-bcd.c @@ -321,7 +321,7 @@ prepare_daemon (struct MHD_Daemon *daemon_handle) GNUNET_assert (MHD_YES == MHD_get_fdset (daemon_handle, &rs, &ws, &es, &max)); haveto = MHD_get_timeout (daemon_handle, &timeout); if (haveto == MHD_YES) - tv.rel_value_us = (uint64_t) timeout; + tv.rel_value_us = (uint64_t) timeout * 1000LL; else tv = GNUNET_TIME_UNIT_FOREVER_REL; GNUNET_NETWORK_fdset_copy_native (wrs, &rs, max + 1); diff --git a/src/hostlist/hostlist-server.c b/src/hostlist/hostlist-server.c index 60ea2006a..2cda6dd00 100644 --- a/src/hostlist/hostlist-server.c +++ b/src/hostlist/hostlist-server.c @@ -502,7 +502,7 @@ prepare_daemon (struct MHD_Daemon *daemon_handle) GNUNET_assert (MHD_YES == MHD_get_fdset (daemon_handle, &rs, &ws, &es, &max)); haveto = MHD_get_timeout (daemon_handle, &timeout); if (haveto == MHD_YES) - tv.rel_value_us = (uint64_t) timeout; + tv.rel_value_us = (uint64_t) timeout * 1000LL; else tv = GNUNET_TIME_UNIT_FOREVER_REL; GNUNET_NETWORK_fdset_copy_native (wrs, &rs, max + 1); -- 2.25.1