forked from boostorg/beast
@@ -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)
|
||||
|
||||
@@ -165,6 +165,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)
|
||||
|
||||
@@ -106,6 +106,11 @@ do_listen(
|
||||
if(ec)
|
||||
return fail(ec, "open");
|
||||
|
||||
// Allow address reuse
|
||||
acceptor.set_option(boost::asio::socket_base::reuse_address(true));
|
||||
if(ec)
|
||||
return fail(ec, "set_option");
|
||||
|
||||
// Bind to the server address
|
||||
acceptor.bind(endpoint, ec);
|
||||
if(ec)
|
||||
|
||||
@@ -92,6 +92,11 @@ do_listen(
|
||||
if(ec)
|
||||
return fail(ec, "open");
|
||||
|
||||
// Allow address reuse
|
||||
acceptor.set_option(boost::asio::socket_base::reuse_address(true));
|
||||
if(ec)
|
||||
return fail(ec, "set_option");
|
||||
|
||||
// Bind to the server address
|
||||
acceptor.bind(endpoint, ec);
|
||||
if(ec)
|
||||
|
||||
@@ -268,6 +268,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)
|
||||
@@ -376,6 +384,10 @@ do_coro_listen(
|
||||
if(ec)
|
||||
return fail(ec, "open");
|
||||
|
||||
acceptor.set_option(boost::asio::socket_base::reuse_address(true));
|
||||
if(ec)
|
||||
return fail(ec, "set_option");
|
||||
|
||||
acceptor.bind(endpoint, ec);
|
||||
if(ec)
|
||||
return fail(ec, "bind");
|
||||
|
||||
@@ -179,6 +179,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)
|
||||
|
||||
@@ -156,6 +156,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)
|
||||
|
||||
Reference in New Issue
Block a user