aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r--src/microhttpd/connection.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 79014352..02fc0e71 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -4999,8 +4999,8 @@ MHD_set_connection_option (struct MHD_Connection *connection,
4999 va_start (ap, option); 4999 va_start (ap, option);
5000 ui_val = va_arg (ap, unsigned int); 5000 ui_val = va_arg (ap, unsigned int);
5001 va_end (ap); 5001 va_end (ap);
5002#if (SIZEOF_UINT64_T - 1) <= SIZEOF_UNSIGNED_INT 5002#if (SIZEOF_UINT64_T - 2) <= SIZEOF_UNSIGNED_INT
5003 if ((UINT64_MAX / 2000 - 1) < ui_val) 5003 if ((UINT64_MAX / 4000 - 1) < ui_val)
5004 { 5004 {
5005#ifdef HAVE_MESSAGES 5005#ifdef HAVE_MESSAGES
5006 MHD_DLOG (connection->daemon, 5006 MHD_DLOG (connection->daemon,
@@ -5008,12 +5008,12 @@ MHD_set_connection_option (struct MHD_Connection *connection,
5008 "large. Maximum allowed value (%" PRIu64 ") will be used " \ 5008 "large. Maximum allowed value (%" PRIu64 ") will be used " \
5009 "instead.\n"), 5009 "instead.\n"),
5010 ui_val, 5010 ui_val,
5011 (UINT64_MAX / 2000 - 1)); 5011 (UINT64_MAX / 4000 - 1));
5012#endif 5012#endif
5013 ui_val = UINT64_MAX / 2000 - 1; 5013 ui_val = UINT64_MAX / 4000 - 1;
5014 } 5014 }
5015 else 5015 else
5016#endif /* (SIZEOF_UINT64_T - 1) <= SIZEOF_UNSIGNED_INT */ 5016#endif /* (SIZEOF_UINT64_T - 2) <= SIZEOF_UNSIGNED_INT */
5017 connection->connection_timeout_ms = ui_val * 1000; 5017 connection->connection_timeout_ms = ui_val * 1000;
5018 if ( (0 == (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) && 5018 if ( (0 == (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) &&
5019 (! connection->suspended) ) 5019 (! connection->suspended) )