]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: use keepalive2 to verify the mon session is live
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:49:59 +0000 (16:49 -0700)
commit80e0a0a8fee2f6f903f612734b2cc72eae703eae
tree6878cc3a82eb4da6eb0319ca3b8b00b48e8f2b38
parent8723218379e80725a449b0594a4b15eb1c236b05
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>
(cherry picked from commit 056151a6334c054505c54e59af40f203a0721f28)
src/common/config_opts.h
src/mon/MonClient.cc