]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/beast: replace beast::tcp_stream with manual timeouts
authorCasey Bodley <cbodley@redhat.com>
Sat, 30 Oct 2021 23:47:02 +0000 (19:47 -0400)
committerCory Snyder <csnyder@iland.com>
Tue, 16 Nov 2021 14:59:02 +0000 (09:59 -0500)
commit161538eb626fdecff84e5882bb1e0ada51ff83b5
treeaa364deb5571777b2cfeeea4ee043ca4ae87c481
parenteb6974a64801744ad911fb931d8c31e253fc0a81
rgw/beast: replace beast::tcp_stream with manual timeouts

remove the beast::tcp_stream wrapper from the socket, and track timeouts
manually with a timeout_timer. this timer uses ceph's coarse_mono_clock
which is cheaper to sample than std::chrono::steady_clock

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_asio_frontend.cc
src/rgw/rgw_asio_frontend_timer.h [new file with mode: 0644]