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;
enum MHD_StatusCode MHD_daemon_get_timeout(struct MHD_Daemon *daemon, MHD_UNSIGNED_LONG_LONG *timeout)
time_t MHD_monotonic_sec_counter(void)
MHD internal shared structures.
#define MHD_UNSIGNED_LONG_LONG
struct MHD_Connection * prevX
time_t connection_timeout
struct MHD_Daemon * daemon
bool data_already_pending
enum MHD_EventLoopSyscall event_loop_syscall
struct MHD_Connection * manual_timeout_tail
struct MHD_Connection * normal_timeout_tail
enum MHD_ThreadingMode threading_mode