From 6ead20baa80655d6e29f7c413b680b04f996dc2a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 26 Aug 2009 15:38:27 -0700 Subject: [PATCH] msgr: handle keepalive --- src/msg/SimpleMessenger.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/msg/SimpleMessenger.cc b/src/msg/SimpleMessenger.cc index 195f4389bf311..554bc9a123175 100644 --- a/src/msg/SimpleMessenger.cc +++ b/src/msg/SimpleMessenger.cc @@ -1199,6 +1199,12 @@ void SimpleMessenger::Pipe::reader() continue; } + if (tag == CEPH_MSGR_TAG_KEEPALIVE) { + dout(20) << "reader got KEEPALIVE" << dendl; + lock.Lock(); + continue; + } + // open ... if (tag == CEPH_MSGR_TAG_ACK) { dout(20) << "reader got ACK" << dendl; -- 2.39.5