]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: increase beast parse buffer size to 64k 30437/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 20 Aug 2019 17:18:45 +0000 (13:18 -0400)
committerNathan Cutler <ncutler@suse.com>
Tue, 17 Sep 2019 18:35:45 +0000 (20:35 +0200)
commitf3b72b6fdbd45b8f9dbc4820678d659a76705a1a
treea026f42b9e60a49afa898b25efc42b9622016b20
parent462e659cea1c8b2eb8cf214b90ae6b7a43b91842
rgw: increase beast parse buffer size to 64k

the flat_buffer starts very small and rarely grew above 512 bytes when
reading headers. this buffer's capacity() is what determines the size of
reads when when recv_body() calls boost::beast::http::async_read_some().
raising this buffer size to a static 64k greatly reduces the number of
socket reads

Reported-by: Marcus Watts <mwatts@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit f13c6914eba9ad05c7bcff6eda81bb858f0f2349)

Conflicts:
src/rgw/rgw_asio_frontend.cc
src/rgw/rgw_asio_frontend.cc