]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't map to EIO in rgw_http_error_to_errno() 56704/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 4 Apr 2024 14:38:02 +0000 (10:38 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 4 Apr 2024 14:38:06 +0000 (10:38 -0400)
commit37352a90740960407a07977dd7236156b803dd63
tree7432829d09a1556961934c5803a1bdd320b13029
parentbecfb26b80beb8e5e25e5d8f6a0e6eedab41aa10
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>
src/rgw/rgw_http_errors.h