]> git.apps.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:18:23 +0000 (09:18 -0500)
commitc18571a89d1f3641ca9ffbd3587cf83a4cf47839
treed040dd5260e691ce3670bbc9d665440a1726ec57
parent464ece221f1a89f9d3d727ff379a67a1bae033a4
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]