2 ms·
> Triggering a non-blocking read and continuing execution requires either writing different code Well you are asking about doing something non-blocking. That m
by smegel 10y ago
> Triggering a non-blocking read and continuing execution requires either writing different code
Well you are asking about doing something non-blocking. That means you must be in some kind of event-loop scenario, otherwise you would be happy with synchronous operations. And yes, you would need to add a read event on the file, and then trigger the socket.send() once the data is in memory.
I never said it was free. But at least it is viable.
- Dylan16807 10y agoYour response to paging being blocking was to blame Linux. Every OS has paging be blocking. Linux has ways to do non-blocking IO. There is no reason to blame Linux.