On Tuesday, 3 October 2017 at 11:36:28 UTC, Oleg B wrote:
EAGAIN Non-blocking I/O has been selected using O_NONBLOCK and no datawas immediately available for reading.And I can't check this without using exception handling?
Your programm shall not read before data is available. Use core.sys.posix.sys.select to check if read would block on a blocking socket.