Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
LtdJorge
· 2y ago · 0 comments
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.
Comments
[–]
jasdfuwjass
2y ago
Doesn't this miss the forest for the trees? The entire point is to drive with epoll.
[–]
LtdJorge
OP
2y ago
Well, yes. But it means you can do sync non-blocking IO by hand.