Description
Currently, the epoll system calls are being invoked on every iteration, which is not optimal. We need a way to efficiently manage the listening socket and active connections in epoll.
Tasks
Devise an efficient approach to handle connections using epoll
Ensure the listening socket is managed optimally
Avoid redundant epoll_ctl calls in the main loop