51 time_t earliest_deadline;
60 MHD_SC_CONFIGURATION_MISMATCH_FOR_GET_TIMEOUT,
61 _ (
"Illegal call to MHD_get_timeout.\n"));
63 return MHD_SC_CONFIGURATION_MISMATCH_FOR_GET_TIMEOUT;
76#
if defined(UPGRADE_SUPPORT) && defined(HTTPS_SUPPORT)
88 earliest_deadline = 0;
93 if ( (! have_timeout) ||
101 if ( (
NULL != pos) &&
104 if ( (! have_timeout) ||
111 return MHD_SC_NO_TIMEOUT;
113 if (earliest_deadline < now)
117 const time_t second_left = earliest_deadline - now;
121 *timeout = 1000LL * second_left;