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/bitcoin-cli.cpp | |
| 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/bitcoin-cli.cpp')
| -rw-r--r-- | src/bitcoin-cli.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index 3b991f927..0609adcab 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -126,7 +126,7 @@ Object CallRPC(const string& strMethod, const Array& params) // Receive HTTP reply message headers and body map<string, string> mapHeaders; string strReply; - ReadHTTPMessage(stream, mapHeaders, strReply, nProto); + ReadHTTPMessage(stream, mapHeaders, strReply, nProto, std::numeric_limits<size_t>::max()); if (nStatus == HTTP_UNAUTHORIZED) throw runtime_error("incorrect rpcuser or rpcpassword (authorization failed)"); |