]> 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:49:49 +0000 (16:49 -0700)
commit8723218379e80725a449b0594a4b15eb1c236b05
tree7a2b5da64cb53284701b5726d0297d267781da61
parenta2f0974f8b3567c0385494a0b2c828ade6ca8e1c
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>
(cherry picked from commit d747d79fd5ea8662a809c5636dfd2eaaa9bf8f5d)

Conflicts:

src/include/ceph_features.h
src/include/ceph_features.h
src/include/msgr.h
src/msg/Message.h
src/msg/Pipe.cc
src/msg/Pipe.h