From 978036510baef1f4b0373537795fcfe5332d0577 Mon Sep 17 00:00:00 2001 From: Yuval Lifshitz Date: Sun, 11 Aug 2019 10:06:05 +0300 Subject: [PATCH] rgw: don't throw when accept errors are happening on frontend Signed-off-by: Yuval Lifshitz (cherry picked from commit 929c062ae9baa26abac3050e9a1d0178c7349a6a) --- src/rgw/rgw_asio_frontend.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_asio_frontend.cc b/src/rgw/rgw_asio_frontend.cc index fc331e21877..9b86570cd49 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); -- 2.47.3