net: exit on WAITALL and !ret
[fio.git] / engines / net.c
index 101f7540789b9994a084777e02529e4be102429b..419508e47a5ec037a33c2c00781973820cbdc752 100644 (file)
@@ -360,6 +360,8 @@ static int fio_netio_recv(struct thread_data *td, struct io_u *io_u)
                }
                if (ret > 0)
                        break;
+               else if (!ret && (flags & MSG_WAITALL))
+                       break;
 
                ret = poll_wait(td, io_u->file->fd, POLLIN);
                if (ret <= 0)