gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 04/05: Unified timeout parameter processing


From: gnunet
Subject: [libmicrohttpd] 04/05: Unified timeout parameter processing
Date: Sun, 31 Oct 2021 15:42:01 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 0187a69d4a77990271ee17659d733196db60a8d2
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Oct 31 17:38:41 2021 +0300

    Unified timeout parameter processing
    
    Fixed processing of MHD_OPTION_CONNECTION_TIMEOUT option.
---
 src/microhttpd/daemon.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 1c115657..88e8d909 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -5645,14 +5645,13 @@ parse_options_va (struct MHD_Daemon *daemon,
 #ifdef HAVE_MESSAGES
         MHD_DLOG (daemon,
                   _ ("The specified connection timeout (%u) is too large. " \
-                     "Maximum allowed value (" PRIu64 ") will be used " \
+                     "Maximum allowed value (%" PRIu64 ") will be used " \
                      "instead.\n"),
                   uv,
                   (UINT64_MAX / 2000 - 1));
 #endif
-        daemon->connection_timeout_ms = UINT64_MAX / 2000 - 1;
+        uv = UINT64_MAX / 2000 - 1;
       }
-      else
 #endif /* (SIZEOF_UINT64_T - 1) <= SIZEOF_UNSIGNED_INT */
       daemon->connection_timeout_ms = uv * 1000;
       break;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]