From c316f821807f8fe9eb71982b7ed93b99acd0bfcd Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 27 Sep 2018 20:40:22 +0800 Subject: [PATCH] msg/async: keep connection alive only actually sending When connection stuck into odd state, we need to let connection timeout. If send_message could update last_active, it won't play the role as expected. So we move last_active updated to the place actually should. Signed-off-by: Haomai Wang Signed-off-by: Kefu Chai --- src/msg/async/AsyncConnection.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index cf2110d92a541..6e42ad95ecbc4 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -513,7 +513,6 @@ int AsyncConnection::send_message(Message *m) return 0; } - last_active = ceph::coarse_mono_clock::now(); // we don't want to consider local message here, it's too lightweight which // may disturb users logger->inc(l_msgr_send_messages); -- 2.39.5