Y
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
jasdfuwjass
600 days ago
Doesn't this miss the forest for the trees? The entire point is to drive with epoll.
link
LtdJorge
600 days ago
Well, yes. But it means you can do sync non-blocking IO by hand.
link