3 ms·
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.
by LtdJorge 2y 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.
- jasdfuwjass 2y agoDoesn't this miss the forest for the trees? The entire point is to drive with epoll.
- LtdJorge 2y agoWell, yes. But it means you can do sync non-blocking IO by hand.