From: Abhishek Lekshmanan Date: Fri, 24 Jan 2020 14:41:51 +0000 (+0100) Subject: rgw: drop the partial message check while reading messages X-Git-Tag: v14.2.7~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=20fd89ebe1299127b7c37598a4878428fca40fff;p=ceph.git rgw: drop the partial message check while reading messages Avoid leaking connections that had partially-consumed client data on unexpected disconnect. Signed-off-by: Or Friedmann Signed-off-by: Abhishek Lekshmanan --- diff --git a/src/rgw/rgw_asio_frontend.cc b/src/rgw/rgw_asio_frontend.cc index 82e2a45da6c3a..6e3e07655ce79 100644 --- a/src/rgw/rgw_asio_frontend.cc +++ b/src/rgw/rgw_asio_frontend.cc @@ -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) {