diff options
author | Gregory Maxwell <greg@xiph.org> | 2015-01-16 05:59:36 -0800 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-01-19 12:16:17 +0100 |
commit | 186a517692a659cd549e8e8e2161d7a99a188b9e (patch) | |
tree | c662eb673872536f484b3033e7904e90ee48b620 /src/rpcserver.cpp | |
parent | aaf55d25c6191c0effd5fa5dd5d2d0f17e715854 (diff) | |
download | bitcoin-186a517692a659cd549e8e8e2161d7a99a188b9e.tar.xz |
Restore RPC HTTP keepalives to default.
This avoids a regression for issues like #334 where high speed
repeated connections eventually run the HTTP client out of
sockets because all of theirs end up in time_wait.
Maybe the trade-off here is suboptimal, but if both choices will
fail then we prefer fewer changes until the root cause is solved.
Rebased-From: 1a25a7edf82706c3152e2d978d320ec465a34de1 7d2cb485116636595250fce4ea4eab16a877479b
Github-Pull: #5674
Diffstat (limited to 'src/rpcserver.cpp')
-rw-r--r-- | src/rpcserver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp index aa0ed8ba96..6db2b0421f 100644 --- a/src/rpcserver.cpp +++ b/src/rpcserver.cpp @@ -954,7 +954,7 @@ void ServiceConnection(AcceptedConnection *conn) ReadHTTPMessage(conn->stream(), mapHeaders, strRequest, nProto, MAX_SIZE); // HTTP Keep-Alive is false; close connection immediately - if ((mapHeaders["connection"] == "close") || (!GetBoolArg("-rpckeepalive", false))) + if ((mapHeaders["connection"] == "close") || (!GetBoolArg("-rpckeepalive", true))) fRun = false; // Process via JSON-RPC API |