From: Yuval Lifshitz Date: Sun, 11 Aug 2019 07:06:05 +0000 (+0300) Subject: rgw: don't throw when accept errors are happening on frontend X-Git-Tag: v12.2.13~88^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=978036510baef1f4b0373537795fcfe5332d0577;p=ceph.git rgw: don't throw when accept errors are happening on frontend Signed-off-by: Yuval Lifshitz (cherry picked from commit 929c062ae9baa26abac3050e9a1d0178c7349a6a) --- diff --git a/src/rgw/rgw_asio_frontend.cc b/src/rgw/rgw_asio_frontend.cc index fc331e218777..9b86570cd49d 100644 --- a/src/rgw/rgw_asio_frontend.cc +++ b/src/rgw/rgw_asio_frontend.cc @@ -480,7 +480,8 @@ void AsioFrontend::accept(Listener& l, boost::system::error_code ec) } else if (ec == boost::asio::error::operation_aborted) { return; } else if (ec) { - throw ec; + ldout(ctx(), 1) << "accept failed: " << ec.message() << dendl; + return; } auto socket = std::move(l.socket); tcp::no_delay options(l.use_nodelay);