From ce4a8067b5027a4a986b3427539642f8d767318a Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Thu, 11 May 2023 01:34:35 +0300 Subject: [PATCH] Handle client stop during incoming stream handling in 1 more place --- src/msgr_receive.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/msgr_receive.cpp b/src/msgr_receive.cpp index f3d9170b..1c964dd2 100644 --- a/src/msgr_receive.cpp +++ b/src/msgr_receive.cpp @@ -103,7 +103,10 @@ bool osd_messenger_t::handle_read(int result, osd_client_t *cl) cl->recv_list.eat(result); if (cl->recv_list.done >= cl->recv_list.count) { - handle_finished_read(cl); + if (!handle_finished_read(cl)) + { + goto fin; + } } } if (result >= cl->read_iov.iov_len)