mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02: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.
This commit is contained in:
parent
9fe53a85e0
commit
7d2cb48511
2 changed files with 2 additions and 2 deletions
|
|
@ -953,7 +953,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue