mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
Fixed possible timeout value trim on 32-bits platforms
This commit is contained in:
@@ -6807,7 +6807,7 @@ MHD_set_connection_option (struct MHD_Connection *connection,
|
||||
XDLL_remove (daemon->manual_timeout_head,
|
||||
daemon->manual_timeout_tail,
|
||||
connection);
|
||||
connection->connection_timeout_ms = ui_val * 1000;
|
||||
connection->connection_timeout_ms = ((uint64_t) ui_val) * 1000;
|
||||
if (connection->connection_timeout_ms == daemon->connection_timeout_ms)
|
||||
XDLL_insert (daemon->normal_timeout_head,
|
||||
daemon->normal_timeout_tail,
|
||||
|
||||
@@ -6308,7 +6308,7 @@ parse_options_va (struct MHD_Daemon *daemon,
|
||||
uv = UINT64_MAX / 4000 - 1;
|
||||
}
|
||||
#endif /* (SIZEOF_UINT64_T - 2) <= SIZEOF_UNSIGNED_INT */
|
||||
daemon->connection_timeout_ms = uv * 1000;
|
||||
daemon->connection_timeout_ms = ((uint64_t) uv) * 1000;
|
||||
break;
|
||||
case MHD_OPTION_NOTIFY_COMPLETED:
|
||||
daemon->notify_completed = va_arg (ap,
|
||||
|
||||
Reference in New Issue
Block a user