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

src/rgw/rgw_asio_frontend.cc

index 58a7446db3c15f9f0a473f134c40acf77da6c4a0..ddcbb5dfeec31f281c216c3c2a718f860bbc95eb 100644 (file)
@@ -563,7 +563,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);