Fixed idle session processing
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.
This commit is contained in:
@ -2,10 +2,10 @@
|
||||
#define _HK_HEARTBEAT_H
|
||||
|
||||
/**
|
||||
* The global housekeeper heartbeat value. This value is increamente
|
||||
* every 100ms and may be used for crude timing etc.
|
||||
* The global housekeeper heartbeat value. This value is incremented
|
||||
* every 100 milliseconds and may be used for crude timing etc.
|
||||
*/
|
||||
|
||||
extern unsigned long hkheartbeat;
|
||||
extern long hkheartbeat;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user