From: Jens Axboe Date: Wed, 5 Oct 2011 18:45:37 +0000 (+0200) Subject: client: disconnect on read failure X-Git-Tag: fio-1.99.1~4 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=28d3ab07f7c68afe9ad3b07bb9c288f3e94957da;p=fio.git client: disconnect on read failure Signed-off-by: Jens Axboe --- diff --git a/client.c b/client.c index c8e4a4dc..4b77f692 100644 --- a/client.c +++ b/client.c @@ -588,7 +588,11 @@ int fio_handle_clients(void) log_err("fio: unknown client\n"); continue; } - handle_client(client, 0); + if (!handle_client(client, 0)) { + log_info("client: host=%s disconnected\n", + client->hostname); + remove_client(client); + } } }