mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-10-06 04:03:18 +03:00
Unified timeout parameter processing
Fixed processing of MHD_OPTION_CONNECTION_TIMEOUT option.
This commit is contained in:
1 file changed
+2
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user