]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msgr: add KEEPALIVE2 feature
authorSage Weil <sage@inktank.com>
Fri, 28 Mar 2014 04:09:13 +0000 (21:09 -0700)
committerSage Weil <sage@inktank.com>
Fri, 28 Mar 2014 23:09:26 +0000 (16:09 -0700)
commitd747d79fd5ea8662a809c5636dfd2eaaa9bf8f5d
tree9b369f33cbc712d7902de29505a4327eb4d36b10
parent38d4c71a456c1cc9a5044dbcae5378836a34484d
msgr: add KEEPALIVE2 feature

This is similar to KEEPALIVE, except a timestamp is also exchanged.  It is
sent with the KEEPALIVE, and then returned with the ACK.  The last
received stamp is stored in the Connection so that it can be queried for
liveness.  Since all of the users of keepalive are already regularly
triggering a keepalive, they can check the liveness at the same time.

See #7888.

Signed-off-by: Sage Weil <sage@inktank.com>
src/include/ceph_features.h
src/include/msgr.h
src/msg/Message.h
src/msg/Pipe.cc
src/msg/Pipe.h