As discussed in #1458, there are multiple issues in the epoll and poll-based Socket::select() implementation: - struct epoll_event eventsIn is allocated on the stack - POCO_INVALID_SOCKET is not handled in poll implementation - poll code needs some review