]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/net: remove unnecessary empty buffer check
authorYingxin <yingxin.cheng@intel.com>
Fri, 28 Dec 2018 02:40:58 +0000 (10:40 +0800)
committerYingxin Cheng <yingxincheng@gmail.com>
Fri, 4 Jan 2019 06:06:20 +0000 (14:06 +0800)
Signed-off-by: Yingxin <yingxin.cheng@intel.com>
src/crimson/net/SocketConnection.cc

index 789c0ac7936ef458e3fc378c6ced761bc06c9a21..a18e6c302a6124d669e5d797447deb18c044c84d 100644 (file)
@@ -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()