From 929c062ae9baa26abac3050e9a1d0178c7349a6a 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 --- 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 d4ea4483e545..c70abf3a354c 100644 --- a/src/rgw/rgw_asio_frontend.cc +++ b/src/rgw/rgw_asio_frontend.cc @@ -567,7 +567,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