]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Changed discard buffer size 58378/head
authorArtem Vasiliev <bladegreat@yandex.ru>
Mon, 1 Jul 2024 16:39:58 +0000 (19:39 +0300)
committerGitHub <noreply@github.com>
Mon, 1 Jul 2024 16:39:58 +0000 (19:39 +0300)
Signed-off-by: Artem Vasilev <art.a.vasilev@tbank.ru>
src/rgw/rgw_asio_frontend.cc

index ace3b7aff49e9a4d3424952946ceeb8ff4b8aa0f..8ce99fdf05d516dc83e8cab25e7de6e52b4317c1 100644 (file)
@@ -323,7 +323,7 @@ void handle_connection(boost::asio::io_context& context,
     // if we failed before reading the entire message, discard any remaining
     // bytes before reading the next
     while (!expect_continue && !parser.is_done()) {
-      static std::array<char, 1024> discard_buffer;
+      static std::array<char, 1024*1024> discard_buffer;
 
       auto& body = parser.get().body();
       body.size = discard_buffer.size();