]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/beast/example/websocket/server/async-ssl/websocket_server_async_ssl.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / beast / example / websocket / server / async-ssl / websocket_server_async_ssl.cpp
index a08aceb550d514c57fd153c11928dfa15a083d6c..e0e557ed36571aebc44d3522a29aa1f4b56fb646 100644 (file)
@@ -191,6 +191,14 @@ public:
             return;
         }
 
+        // Allow address reuse
+        acceptor_.set_option(boost::asio::socket_base::reuse_address(true));
+        if(ec)
+        {
+            fail(ec, "set_option");
+            return;
+        }
+
         // Bind to the server address
         acceptor_.bind(endpoint, ec);
         if(ec)