]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: don't throw when accept errors are happening on frontend 30154/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 19:32:33 +0000 (21:32 +0200)
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
(cherry picked from commit 929c062ae9baa26abac3050e9a1d0178c7349a6a)

src/rgw/rgw_asio_frontend.cc

index 47f692f6ba79db155be48a47083fec3ecef3cf82..19add0432398685ed2b0e45bfad4fdeb12fbcea4 100644 (file)
@@ -485,7 +485,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);