Fixup TCP read wait special case.

This commit is contained in:
Sönke Ludwig 2017-01-22 12:40:07 +01:00
parent dd5c88d1ed
commit 1c83076897

View file

@ -472,8 +472,7 @@ final class PosixEventDriverSockets(Loop : PosixEventLoop) : EventDriverSockets
}
sizediff_t ret = 0;
if (!slot.readBuffer.length)
() @trusted { ret = .recv(socket, slot.readBuffer.ptr, slot.readBuffer.length, 0); } ();
() @trusted { ret = .recv(socket, slot.readBuffer.ptr, slot.readBuffer.length, 0); } ();
if (ret < 0) {
auto err = getSocketError();
if (!err.among!(EAGAIN, EINPROGRESS)) {