Skip to content

Timing Connections Out #9

@0yech

Description

@0yech

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions