Mercurial > hg > bitcoin
changeset 429:10b5ecf3f7e9 draft
Set SO_REUSEADDR for JSON-RPC port
author | sandos <sandos@sanddesk.(none)> |
---|---|
date | Thu, 10 Feb 2011 09:25:42 +0100 |
parents | 71be2db4bc99 |
children | 0d6cf2dc0aa7 |
files | rpc.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rpc.cpp +++ b/rpc.cpp @@ -1710,6 +1710,8 @@ 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)