From: Shilpa Jagannath Date: Wed, 6 May 2026 21:50:17 +0000 (-0400) Subject: rgw: fix frontend crash in abort_early() on client disconnect X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F68782%2Fhead;p=ceph.git rgw: fix frontend crash in abort_early() on client disconnect wrap the send_body() call in abort_early() with try/catch for rgw::io::Exception Signed-off-by: Shilpa Jagannath --- diff --git a/src/rgw/rgw_rest.cc b/src/rgw/rgw_rest.cc index a22baa7bca60..b0ccf81ef698 100644 --- a/src/rgw/rgw_rest.cc +++ b/src/rgw/rgw_rest.cc @@ -746,7 +746,12 @@ void abort_early(req_state *s, RGWOp* op, int err_no, * x-amz-error-detail-Key: foo */ end_header(s, op, NULL, error_content.size(), false, true); - RESTFUL_IO(s)->send_body(error_content.c_str(), error_content.size()); + try { + RESTFUL_IO(s)->send_body(error_content.c_str(), error_content.size()); + } catch (rgw::io::Exception& e) { + ldpp_dout(s, 0) << "ERROR: abort_early: send_body() returned err=" + << e.what() << dendl; + } } else { end_header(s, op); }