u413-284-si / webserv

This project is about setting up a http web server, providing a static website.
MIT License
0 stars 0 forks source link

14 core call epoll with timeout value #40

Closed u413-284-si closed 1 month ago

u413-284-si commented 1 month ago

Add timeout value to epoll_wait to activate epoll when there have been no events for said time span. Add tracking of last_active point in time for each connection. Epoll checks for each connection whether a predetermined idle time threshold has been breached. In case yes, the connection is closed.

This prevents idle connections to stay open endlessly.

Closes #14

u413-284-si commented 1 month ago

As most of this is implemented in branch #37, I guess we can drop this PR.

gwolf-011235 commented 1 month ago

How do we drop a PR? We never did that

u413-284-si commented 1 month ago

How do we drop a PR? We never did that

I would just close the PR w/o merging and then delete the branch.