Added UDP handling and finishing TCP events for epoll