From 02e6cc46226a419b0825f8d19dbd36082d54ca20 Mon Sep 17 00:00:00 2001 From: Yingxin Date: Fri, 28 Dec 2018 10:40:58 +0800 Subject: [PATCH] crimson/net: remove unnecessary empty buffer check Signed-off-by: Yingxin --- src/crimson/net/SocketConnection.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/crimson/net/SocketConnection.cc b/src/crimson/net/SocketConnection.cc index 789c0ac7936..a18e6c302a6 100644 --- a/src/crimson/net/SocketConnection.cc +++ b/src/crimson/net/SocketConnection.cc @@ -75,9 +75,6 @@ void SocketConnection::read_tags_until_next_message() // read the next tag return socket->read_exactly(1) .then([this] (auto buf) { - if (buf.empty()) { - throw std::system_error(make_error_code(error::read_eof)); - } switch (buf[0]) { case CEPH_MSGR_TAG_MSG: // stop looping and notify read_header() -- 2.47.3