]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: don't throw when accept errors are happening on frontend 30147/head
authorYuval Lifshitz <yuvalif@yahoo.com>
Sun, 11 Aug 2019 07:06:05 +0000 (10:06 +0300)
committerNathan Cutler <ncutler@suse.com>
Wed, 4 Sep 2019 14:17:48 +0000 (16:17 +0200)
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
(cherry picked from commit 929c062ae9baa26abac3050e9a1d0178c7349a6a)

src/rgw/rgw_asio_frontend.cc

index fc331e218777da886782708008784c37f532304c..9b86570cd49ddb95def15276564a68737c8be25a 100644 (file)
@@ -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);