From 28d3ab07f7c68afe9ad3b07bb9c288f3e94957da Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 5 Oct 2011 20:45:37 +0200 Subject: [PATCH] client: disconnect on read failure Signed-off-by: Jens Axboe --- client.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); + } } } -- 2.25.1