From: Haomai Wang Date: Fri, 17 Mar 2017 07:42:05 +0000 (+0800) Subject: msg/async/AsyncConnection: keepalive objecter ping connection to avoid timeout X-Git-Tag: v12.0.2~275^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F14009%2Fhead;p=ceph.git 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 --- 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);