Remove size limit in RPC client, keep it in server #4640

pull laanwj wants to merge 2 commits into bitcoin:master from laanwj:2014_07_rpc_request_size changing 4 files +23 −14
  1. laanwj commented at 11:05 AM on August 6, 2014: member

    The size limit makes a lot of sense for the server, as it never has to accept very large data and has to protect against malicious clients.

    The client, however, can request arbitrary amounts of data (for example with listtransactions on a large wallet). Having a strict size limit makes little sense.

    Fixes #4604.

    The second commit contains a slight optimization that prevents a redundent copy and removes a needless c_str which would mess with binary data.

  2. Avoid a copy in RPC output
    Split up HTTPReply into HTTPReply and HTTPReplyHeader, so that
    the message data can be streamed directly.
    
    Also removes a c_str(), which would have prevented binary
    output with NUL characters in it.
    e17151ad2a
  3. 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.
    733177ebd3
  4. laanwj added the label Wallet on Aug 6, 2014
  5. laanwj added the label RPC on Aug 6, 2014
  6. BitcoinPullTester commented at 11:19 AM on August 6, 2014: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4640_733177ebd3ecf3a03c2acb6b244c8b3d1b4a3981/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  7. Joukehofman commented at 1:09 PM on August 6, 2014: none

    This pr indeed solves the issue I had at #4604 Thanks!

  8. gavinandresen commented at 1:10 PM on August 6, 2014: contributor

    Untested ACK, looks good.

  9. laanwj merged this on Aug 7, 2014
  10. laanwj closed this on Aug 7, 2014

  11. laanwj referenced this in commit 0b588168ab on Aug 7, 2014
  12. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me