4 ms·
Non-blocking sockets. Calls to socket.read() can return no data. It's non-blocking because the program is not stuck waiting for data to be returned.
by acangiano 17y ago
Non-blocking sockets. Calls to socket.read() can return no data. It's non-blocking because the program is not stuck waiting for data to be returned.
- wlievens 17y agoIt also implies you don't need to do threads. Blocking IO means you need a thread per client. Threads have an overhead.