non blocking tcp connect with epoll
- by doccarcass
My linux application is performing non-blocking TCP connect syscall and then use epoll_wait to detect three way handshake completion.
Sometimes epoll_wait returns with both POLLOUT & POLLERR revents set for the same socket descriptor.
I would like to understand what's going on at TCP level.
I'm not able to reproduce it on demand.
My guess is…