]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/beast: realm reload closes connections so requests drain quickly
authorCasey Bodley <cbodley@redhat.com>
Wed, 22 May 2024 18:52:03 +0000 (14:52 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 22 May 2024 19:16:39 +0000 (15:16 -0400)
commitba8be2179e8a8aef838ae4f8604e21dc84f33449
tree5e70c659d71e67cf800ae57287e21d22c14ad0b2
parent7aec00165b4b073a25396fd0279151d2b2fa23fe
rgw/beast: realm reload closes connections so requests drain quickly

outstanding requests may take arbitrarily long to complete. instead of
waiting for everything to complete successfully before pause() returns,
close all client connections so their requests fail quickly

this matches the behavior of stop() for radosgw shutdown/restart. this
should help to minimize the downtime of realm reloads where the frontend
isn't accepting connections or processing new requests

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_asio_frontend.cc