diff options
author | tcatm <tcatm@gawab.com> | 2011-02-23 01:08:27 +0100 |
---|---|---|
committer | tcatm <tcatm@gawab.com> | 2011-02-23 01:08:27 +0100 |
commit | 2175c9dae1122d9360cc2f7ae90fcb47f8bb8270 (patch) | |
tree | f100612b54e10fd1412b25c3cb73078db406c714 | |
parent | 4d9b223ac2b596d93ef772fea27b75d1b959b9ae (diff) | |
parent | 10e135af70683fa5d0477fb008fe7fd00b83d914 (diff) |
Set SO_REUSEADDR on JSON port
-rw-r--r-- | rpc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |