aboutsummaryrefslogtreecommitdiff
path: root/rpc.cpp
diff options
context:
space:
mode:
authorsandos <sandos@sanddesk.(none)>2011-02-10 09:25:42 +0100
committersandos <sandos@sanddesk.(none)>2011-02-10 09:25:42 +0100
commit8fd402bfcf3ab32bd59b0b80017ce5eccf94f093 (patch)
tree506034f84be77587ce0d0ba79c3a79ceab9e4f7f /rpc.cpp
parentd2e2cb0d27deb3098153b43d26743030f24ac1c8 (diff)
Set SO_REUSEADDR for JSON-RPC port
Diffstat (limited to 'rpc.cpp')
-rw-r--r--rpc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc.cpp b/rpc.cpp
index 055e0cf1e7..029993fe53 100644
--- a/rpc.cpp
+++ b/rpc.cpp
@@ -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)