diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-08-06 13:03:58 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-08-06 13:03:58 +0200 |
| commit | 733177ebd3ecf3a03c2acb6b244c8b3d1b4a3981 (patch) | |
| tree | 16cc0d40264dbfec961392fc79dd5520a368a6fe /src/rpcprotocol.h | |
| parent | Avoid a copy in RPC output (diff) | |
| download | discoin-733177ebd3ecf3a03c2acb6b244c8b3d1b4a3981.tar.xz discoin-733177ebd3ecf3a03c2acb6b244c8b3d1b4a3981.zip | |
Remove size limit in RPC client, keep it in server
The size limit makes a lot of sense for the server, as it never has to
accept very large data.
The client, however, can request arbitrary amounts of data with
`listtransactions` on a large wallet.
Fixes #4604.
Diffstat (limited to 'src/rpcprotocol.h')
| -rw-r--r-- | src/rpcprotocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcprotocol.h b/src/rpcprotocol.h index a088c379d..8f05c0848 100644 --- a/src/rpcprotocol.h +++ b/src/rpcprotocol.h @@ -153,7 +153,7 @@ bool ReadHTTPRequestLine(std::basic_istream<char>& stream, int &proto, int ReadHTTPStatus(std::basic_istream<char>& stream, int &proto); int ReadHTTPHeaders(std::basic_istream<char>& stream, std::map<std::string, std::string>& mapHeadersRet); int ReadHTTPMessage(std::basic_istream<char>& stream, std::map<std::string, std::string>& mapHeadersRet, - std::string& strMessageRet, int nProto); + std::string& strMessageRet, int nProto, size_t max_size); std::string JSONRPCRequest(const std::string& strMethod, const json_spirit::Array& params, const json_spirit::Value& id); json_spirit::Object JSONRPCReplyObj(const json_spirit::Value& result, const json_spirit::Value& error, const json_spirit::Value& id); std::string JSONRPCReply(const json_spirit::Value& result, const json_spirit::Value& error, const json_spirit::Value& id); |