Revert "Closes #1680, temporary fix for rpc deadlock inherited from upstream."

This reverts commit f4404d7b5b.
This commit is contained in:
Jack Grigg
2017-02-22 13:18:37 +00:00
parent 7d9bf65501
commit bec25c91cb
3 changed files with 14 additions and 18 deletions

View File

@@ -1023,15 +1023,9 @@ void ServiceConnection(AcceptedConnection *conn)
// Read HTTP message headers and body
ReadHTTPMessage(conn->stream(), mapHeaders, strRequest, nProto, MAX_SIZE);
// TODO #1856: Re-enable support for persistent connections.
// We have disabled support for HTTP Keep-Alive until resolution of #1680, upstream rpc deadlock.
// Close connection immediately.
fRun = false;
/*
// HTTP Keep-Alive is false; close connection immediately
if ((mapHeaders["connection"] == "close") || (!GetBoolArg("-rpckeepalive", true)))
fRun = false;
*/
// Process via JSON-RPC API
if (strURI == "/") {