CC: | sri [...] cpan.org |
Subject: | multi-homed non-blocking connect looks broken with epoll (and kqueue, i believe) |
We faced with this inside Mojolicious. Please see this topic (especially strace log): https://groups.google.com/forum/#!topic/mojolicious/RetqP4QsyHU
Here you can see some description why dup2() call removes descriptor from epoll watcher:
http://stackoverflow.com/questions/27948251/why-epoll-wait-doesnt-react-on-dup2writable-fd-non-writable-fd