mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-21 15:50:07 +01:00
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:1a25a7edf87d2cb48511Github-Pull: #5674
This commit is contained in:
committed by
Wladimir J. van der Laan
parent
aaf55d25c6
commit
186a517692
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user