Set SO_REUSEADDR for JSON-RPC port

This commit is contained in:
sandos 2011-02-10 09:25:42 +01:00
parent d2e2cb0d27
commit 8fd402bfcf

View File

@ -1710,6 +1710,8 @@ void ThreadRPCServer2(void* parg)
ip::tcp::endpoint endpoint(bindAddress, GetArg("-rpcport", 8332));
ip::tcp::acceptor acceptor(io_service, endpoint);
acceptor.set_option(boost::asio::ip::tcp::acceptor::reuse_address(true));
#ifdef USE_SSL
ssl::context context(io_service, ssl::context::sslv23);
if (fUseSSL)