From 17131011f3613f924318c9cb5fc9628713759882 Mon Sep 17 00:00:00 2001 From: Haomai Wang Date: Fri, 17 Mar 2017 15:42:05 +0800 Subject: [PATCH] msg/async/AsyncConnection: keepalive objecter ping connection to avoid timeout For objecter ping connection, previously osd will ack the message to make sender not timeout. Now we disable ack tag for lossy connection, it wil let objecter ping connection read timeout. Update last_active when sending message Signed-off-by: Haomai Wang --- src/msg/async/AsyncConnection.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index 824fd272d2c8..5e9118feeb59 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -1908,6 +1908,7 @@ 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.47.3