]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: don't throw when accept errors are happening on frontend 29587/head
authorYuval Lifshitz <yuvalif@yahoo.com>
Sun, 11 Aug 2019 07:06:05 +0000 (10:06 +0300)
committerYuval Lifshitz <yuvalif@yahoo.com>
Sun, 11 Aug 2019 07:06:05 +0000 (10:06 +0300)
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
src/rgw/rgw_asio_frontend.cc

index d4ea4483e54560ad906829e6f595cfbef27fac7c..c70abf3a354c06fc5cc4fa272da35987e3003015 100644 (file)
@@ -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);