]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: don't map to EIO in rgw_http_error_to_errno()
authorCasey Bodley <cbodley@redhat.com>
Thu, 4 Apr 2024 14:38:02 +0000 (10:38 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 10 Apr 2024 16:41:45 +0000 (12:41 -0400)
commit7b9af32e28fbc823e1d9b348484039761907a52a
treebfa79b84c580c096cd10e735595634a83868e934
parent02f35c3aabd1a232d87310c5496d9fd4815fcb1c
rgw: don't map to EIO in rgw_http_error_to_errno()

the http client uses EIO to detect connection errors specifically. if we
map normal http errors to EIO, we incorrectly mark their endpoint as
failed and route requests to other endpoints (if any exist)

default to ERR_INTERNAL_ERROR (500 InternalError) instead

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 37352a90740960407a07977dd7236156b803dd63)
src/rgw/rgw_http_errors.h