The timeouts for poll and epoll are given in milliseconds, which caused busy looping in the event loop for timeouts with less time remaining.