]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerCasey Bodley <cbodley@redhat.com>
Fri, 12 Nov 2021 14:37:09 +0000 (09:37 -0500)
commit3f853538b172d538aaf0b345a237773e7d1e8c69
treedc446bd0cf84ddd86f5342793f43e389278b974c
parent0bee64d8757f679bd532f251ccbcb16c3b5199da
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]