mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user