GNU libmicrohttpd  0.9.72
connection_update_last_activity.c File Reference

functions to add connection to our active set More...

Include dependency graph for connection_update_last_activity.c:

Go to the source code of this file.

Functions

void MHD_connection_update_last_activity_ (struct MHD_Connection *connection)
 

Detailed Description

functions to add connection to our active set

Author
Christian Grothoff

Definition in file connection_update_last_activity.c.

Function Documentation

◆ MHD_connection_update_last_activity_()

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.

Parameters
connectionthe 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().

Here is the call graph for this function:
Here is the caller graph for this function: