3 ms·
Why should you use a blocking mecanism for listening on a socket ? Non-blocking I/Os[1] (epoll on Linux) have been a thing for a long time now. [1] : https://e
by littlestymaar 9y ago
Why should you use a blocking mecanism for listening on a socket ? Non-blocking I/Os[1] (epoll on Linux) have been a thing for a long time now.
[1] : https://en.wikipedia.org/wiki/Asynchronous_I/O https://en.wikipedia.org/wiki/Asynchronous_I/O
- kbwt 9y agoExcept when the non-blocking file I/O API[1] is actually a blocking one. Yes, I realize in this case it's the API that needs fixing, but it isn't looking like that will happen anytime soon. [1] : https://lwn.net/Articles/723752/#724198 https://lwn.net/Articles/723752/#724198