]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: beast frontend calls shutdown before closing connections 20464/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 5 Apr 2018 21:37:05 +0000 (17:37 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 5 Apr 2018 21:38:41 +0000 (17:38 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_asio_frontend.cc

index b69ec795e695684f958ef61f9bd945ce2ec1c682..fcdfe25b0fc687ca9a9b6c8be738b26177765244 100644 (file)
@@ -452,6 +452,7 @@ void AsioFrontend::accept(Listener& l, boost::system::error_code ec)
           // ssl shutdown (ignoring errors)
           stream.async_shutdown(yield[ec]);
         }
+        s.shutdown(tcp::socket::shutdown_both, ec);
       });
   } else {
 #else
@@ -462,6 +463,7 @@ void AsioFrontend::accept(Listener& l, boost::system::error_code ec)
         beast::flat_buffer buffer;
         boost::system::error_code ec;
         handle_connection(env, s, buffer, false, ec, yield);
+        s.shutdown(tcp::socket::shutdown_both, ec);
       });
   }
 }