]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/AsyncConnection: keepalive objecter ping connection to avoid timeout 14009/head
authorHaomai Wang <haomai@xsky.com>
Fri, 17 Mar 2017 07:42:05 +0000 (15:42 +0800)
committerHaomai Wang <haomai@xsky.com>
Fri, 17 Mar 2017 07:42:05 +0000 (15:42 +0800)
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 <haomai@xsky.com>
src/msg/async/AsyncConnection.cc

index 824fd272d2c84b892a7d20107ad2da01b447da79..5e9118feeb593da276815c721fc1604a5c92a259 100644 (file)
@@ -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);