server: idle loop support
[fio.git] / client.c
index b82c322c2e8dbf5feed42b364104c4f83080532c..464dce64542ac2f6e8c119068483d00e9b799d24 100644 (file)
--- a/client.c
+++ b/client.c
@@ -379,7 +379,7 @@ static int handle_client(struct fio_client *client)
        struct fio_net_cmd *cmd;
        int done = 0;
 
-       while ((cmd = fio_net_recv_cmd(client->fd)) != NULL) {
+       while ((cmd = fio_net_recv_cmd(client->fd, 1)) != NULL) {
                dprint(FD_NET, "%s: got cmd op %d\n", client->hostname,
                                                        cmd->opcode);