-
Notifications
You must be signed in to change notification settings - Fork 0
Timing Connections Out #9
Copy link
Copy link
Open
Labels
Description
Timing Connections Out
The Connection Manager will be responsible to check whether connections have timed out, and closing them if required (remember, take the fd off the epoll array and then destroy the connection object).
We'll have to calculate a timeout value for the connection that was active the longest ago, get the difference with the max timeout for that connection, and give that to epoll_wait.
That way, if epoll_wait times out, we know that this connection has to be closed.
If the difference between time elapsed and timeout value is less or equal to 0, close the connection immediately.
Reactions are currently unavailable