]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: use keepalive2 to verify the mon session is live 1556/head
authorSage Weil <sage@inktank.com>
Fri, 28 Mar 2014 04:33:21 +0000 (21:33 -0700)
committerSage Weil <sage@inktank.com>
Fri, 28 Mar 2014 23:09:26 +0000 (16:09 -0700)
commit056151a6334c054505c54e59af40f203a0721f28
treefdb4bac7b4112ccffe6fd34f44464d6e65d62529
parentd747d79fd5ea8662a809c5636dfd2eaaa9bf8f5d
mon/MonClient: use keepalive2 to verify the mon session is live

Verify that the mon is responding by checking the keepalive2 reply
timestamp.  We cannot rely solely on TCP timing out and returning an
error.

Fixes: #7888
Signed-off-by: Sage Weil <sage@inktank.com>
src/common/config_opts.h
src/mon/MonClient.cc