Add support for queuing > 1 command at the time
[fio.git] / engines / net.c
index 4f070f959d99b36ef1d3bf000c4f1a65155f4d24..381c731c9bf3892c9261aabcb45bf0d5812f21a2 100644 (file)
@@ -63,7 +63,7 @@ static int fio_netio_queue(struct thread_data *td, struct io_u *io_u)
                ret = 0;        /* must be a SYNC */
 
        if (ret != (int) io_u->xfer_buflen) {
-               if (ret > 0) {
+               if (ret >= 0) {
                        io_u->resid = io_u->xfer_buflen - ret;
                        io_u->error = 0;
                        return FIO_Q_COMPLETED;