]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: drop the partial message check while reading messages
authorAbhishek Lekshmanan <abhishek@suse.com>
Fri, 24 Jan 2020 14:41:51 +0000 (15:41 +0100)
committerAbhishek Lekshmanan <abhishek@suse.com>
Fri, 31 Jan 2020 16:59:00 +0000 (17:59 +0100)
Avoid leaking connections that had partially-consumed
client data on unexpected disconnect.

Signed-off-by: Or Friedmann <orfriedma@redhat.com>
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_asio_frontend.cc

index 82e2a45da6c3abd6bf1a2bb4dd700dc1c57113c7..6e3e07655ce7984aa8cbd1fb431719f6a81203d7 100644 (file)
@@ -67,8 +67,7 @@ class StreamIO : public rgw::asio::ClientIO {
     while (body_remaining.size && !parser.is_done()) {
       boost::system::error_code ec;
       http::read_some(stream, buffer, parser, ec);
-      if (ec == http::error::partial_message ||
-          ec == http::error::need_buffer) {
+      if (ec == http::error::need_buffer) {
         break;
       }
       if (ec) {