diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index de81f08a..e16eec27 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -4782,7 +4782,7 @@ MHD_set_connection_option (struct MHD_Connection *connection, | |||
4782 | connection->connection_timeout_ms = va_arg (ap, | 4782 | connection->connection_timeout_ms = va_arg (ap, |
4783 | unsigned int); | 4783 | unsigned int); |
4784 | va_end (ap); | 4784 | va_end (ap); |
4785 | #if (0 == (UINT64_MAX + 0)) || ((UINT_MAX + 0) >= (UINT64_MAX + 0)) | 4785 | #if (SIZEOF_UINT64_T - 1) <= SIZEOF_UNSIGNED_INT |
4786 | if ((UINT64_MAX / 2000 - 1) < connection->connection_timeout_ms) | 4786 | if ((UINT64_MAX / 2000 - 1) < connection->connection_timeout_ms) |
4787 | { | 4787 | { |
4788 | #ifdef HAVE_MESSAGES | 4788 | #ifdef HAVE_MESSAGES |
@@ -4796,7 +4796,7 @@ MHD_set_connection_option (struct MHD_Connection *connection, | |||
4796 | connection->connection_timeout_ms = UINT64_MAX / 2000 - 1; | 4796 | connection->connection_timeout_ms = UINT64_MAX / 2000 - 1; |
4797 | } | 4797 | } |
4798 | else | 4798 | else |
4799 | #endif /* UINTMAX_MAX >= UINT64_MAX */ | 4799 | #endif /* (SIZEOF_UINT64_T - 1) <= SIZEOF_UNSIGNED_INT */ |
4800 | connection->connection_timeout_ms *= 1000; | 4800 | connection->connection_timeout_ms *= 1000; |
4801 | if ( (0 == (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) && | 4801 | if ( (0 == (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) && |
4802 | (! connection->suspended) ) | 4802 | (! connection->suspended) ) |