Merge pull request #37 from dbrock/master
Set SO_REUSEADDR to avoid having to wait for network ports to be released when restarting the client
This commit is contained in:
commit
59c6882b03
1 changed files with 1 additions and 0 deletions
|
|
@ -279,6 +279,7 @@ namespace fc {
|
||||||
my = new impl;
|
my = new impl;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
my->_accept.set_option(boost::asio::ip::tcp::acceptor::reuse_address(true));
|
||||||
my->_accept.bind(boost::asio::ip::tcp::endpoint(boost::asio::ip::address_v4(), port));
|
my->_accept.bind(boost::asio::ip::tcp::endpoint(boost::asio::ip::address_v4(), port));
|
||||||
my->_accept.listen();
|
my->_accept.listen();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue