]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: increase beast parse buffer size to 64k 30450/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 20 Aug 2019 17:18:45 +0000 (13:18 -0400)
committerNathan Cutler <ncutler@suse.com>
Wed, 18 Sep 2019 07:46:45 +0000 (09:46 +0200)
commitc2ceaaf176d8062a35fc8e53288da7888dd2509c
tree41b8c8de5d26a3cbc440fba4cb97d73055943406
parent094db6c24f2ce0c2444cd32693b8bd99463c5408
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