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:
Nikolai Mushegian 2014-09-15 14:04:49 -04:00
commit 59c6882b03

View file

@ -279,6 +279,7 @@ namespace fc {
my = new impl;
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.listen();
}