Hacker News new | ask | show | jobs
by LtdJorge 600 days ago
Depends, on Linux you can call set_nonblocking on a TcpListener and get a WouldBlock error whenever a read would block. That's called non-blocking.
1 comments

Doesn't this miss the forest for the trees? The entire point is to drive with epoll.
Well, yes. But it means you can do sync non-blocking IO by hand.