
The current implementation of idle connection timeouts is not safe. The sessions are handled in a way which is not thread-safe and the checking is done from a non-polling thread. With this change, the checks for the session timeouts are done in one of the polling threads in a thread-safe manner only if at least one service has enabled the timing out of idle client connections.
12 lines
224 B
C
12 lines
224 B
C
#ifndef _HK_HEARTBEAT_H
|
|
#define _HK_HEARTBEAT_H
|
|
|
|
/**
|
|
* The global housekeeper heartbeat value. This value is incremented
|
|
* every 100 milliseconds and may be used for crude timing etc.
|
|
*/
|
|
|
|
extern long hkheartbeat;
|
|
|
|
#endif
|