GNU libmicrohttpd
0.9.72
|
function to update last activity of a connection More...
Go to the source code of this file.
Functions | |
void | MHD_connection_update_last_activity_ (struct MHD_Connection *connection) MHD_NONNULL(1) |
function to update last activity of a connection
Definition in file connection_update_last_activity.h.
void MHD_connection_update_last_activity_ | ( | struct MHD_Connection * | connection | ) |
Update the 'last_activity' field of the connection to the current time and move the connection to the head of the 'normal_timeout' list if the timeout for the connection uses the default value.
connection | the connection that saw some activity |
Definition at line 36 of file connection_update_last_activity.c.
References MHD_Daemon::cleanup_connection_mutex, MHD_Daemon::connection_default_timeout, MHD_Connection::connection_timeout, MHD_Connection::daemon, MHD_Connection::last_activity, MHD_monotonic_sec_counter(), MHD_mutex_lock_chk_, MHD_mutex_unlock_chk_, MHD_Daemon::normal_timeout_head, MHD_Daemon::normal_timeout_tail, MHD_Connection::suspended, MHD_Daemon::threading_mode, XDLL_insert, and XDLL_remove.
Referenced by MHD_request_handle_read_(), MHD_request_handle_write_(), and thread_main_handle_connection().