From: Casey Bodley Date: Thu, 5 Jan 2023 16:28:12 +0000 (-0500) Subject: rgw/beast: ClientIO remembers whether it sent '100 Continue' X-Git-Tag: v18.1.0~482^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=99228e17543d2cfed903b801919ef3e5f4847ba7;p=ceph.git rgw/beast: ClientIO remembers whether it sent '100 Continue' Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_asio_client.cc b/src/rgw/rgw_asio_client.cc index 82d5d43f8b8..a0ec0bf5c06 100644 --- a/src/rgw/rgw_asio_client.cc +++ b/src/rgw/rgw_asio_client.cc @@ -123,6 +123,7 @@ size_t ClientIO::send_100_continue() const size_t sent = txbuf.sputn(HTTTP_100_CONTINUE, sizeof(HTTTP_100_CONTINUE) - 1); flush(); + sent100continue = true; return sent; } diff --git a/src/rgw/rgw_asio_client.h b/src/rgw/rgw_asio_client.h index a595b035199..8b03fe2e3da 100644 --- a/src/rgw/rgw_asio_client.h +++ b/src/rgw/rgw_asio_client.h @@ -30,6 +30,7 @@ class ClientIO : public io::RestfulClient, RGWEnv env; rgw::io::StaticOutputBufferer<> txbuf; + bool sent100continue = false; public: ClientIO(parser_type& parser, bool is_ssl, @@ -54,6 +55,8 @@ class ClientIO : public io::RestfulClient, RGWEnv& get_env() noexcept override { return env; } + + bool sent_100_continue() const { return sent100continue; } }; } // namespace asio