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

This commit is contained in:
Simon
2016-11-11 14:39:28 -08:00
parent 3a0855e65a
commit f4404d7b5b
3 changed files with 20 additions and 16 deletions

View File

@@ -1025,9 +1025,15 @@ 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 == "/") {