]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: increase beast parse buffer size to 64k 29776/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 20 Aug 2019 17:18:45 +0000 (13:18 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 30 Aug 2019 15:39:53 +0000 (11:39 -0400)
commitf13c6914eba9ad05c7bcff6eda81bb858f0f2349
tree0b5d72dc39aa24b7f8d917a1324f66b19b27117a
parenta282cfaafa07e8c25098ac1fcb79ea76487f0c72
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>
src/rgw/rgw_asio_frontend.cc