3 ms·
Further gnarliness, hopefully long past relevance: https://cr.yp.to/docs/connect.html https://cr.yp.to/docs/connect.html
by tptacek 1y ago
Further gnarliness, hopefully long past relevance:
https://cr.yp.to/docs/connect.html https://cr.yp.to/docs/connect.html
- JdeBP 1y agoYou might think so. (-: * https://github.com/jdebp/nosh/blob/trunk/source/socket_connect.cpp https://github.com/jdebp/nosh/blob/trunk/source/socket_conne... kqueue() can apparently return the error right in the data of the kevent, but I'm still using poll() so cannot confirm; whilst I can confirm that kqueue/kevent is alas not as truly consistent as one might expect. (Someone recently tried to move FreeBSD devd to kqueue, and hit various problems of FreeBSD devices that are still, even in version 14, not yet kqueue-ready.)
- Asmod4n 1y agoi had hopes to find a elegant solution to this issue in modern async io libs. Those I have found just simply ignore the error and forward it to the user.