Don't claim to support HTTP keep alives and then close the connection. This

properly supports HTTP keep alives and should speed up RPC significantly.
This commit is contained in:
JoelKatz
2012-06-27 12:04:35 -07:00
parent 48de3f3a02
commit dbabc6edd0
2 changed files with 35 additions and 10 deletions

View File

@@ -107,12 +107,12 @@ std::string HTTPReply(int nStatus, const std::string& strMsg)
"Content-Type: application/json; charset=UTF-8\r\n"
"Server: coin-json-rpc/%s\r\n"
"\r\n"
"%s",
"%s\r\n",
nStatus,
strStatus.c_str(),
rfc1123Time().c_str(),
access.c_str(),
strMsg.size(),
strMsg.size() + 2,
SERVER_VERSION,
strMsg.c_str());
}