Sending ~200KB to bitcoind via RPC causes ECONNABORT #14767

issue Lesmiscore opened this issue on November 20, 2018
  1. Lesmiscore commented at 4:49 AM on November 20, 2018: none

    <!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->

    <!-- Describe the issue -->

    Summary

    Sending ~200KB to bitcoind via RPC causes ECONNABORT for its connection.
    Such operation cannot be possible via bitcoin-cli due to Linux's limitation, so it has to be done via HTTP libraries.
    Confirmed on sendrawtransaction.

    <!--- What behavior did you expect? -->

    Expected

    If you did sendrawtransaction <A Transaction that is very close to the weight limit>, it should return transaction hash.
    Any other calls like getwalletinfo should work too.

    <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

    Actual

    ECONNABORT occured for sendrawtransaction <A Transaction that is very close to the weight limit>.
    Any other calls like getwalletinfo worked normally.

    <!--- How reliably can you reproduce the issue, what are the steps to do so? -->

    Steps to reproduce

    • Enable RPC
    • Try example at Expected field.
      • To make such transaction, you may use 1 input and set 2910 outputs.
    • ECONNABORT occured.

    <!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->

    Bitcoin Core version

    0.17.0.1, with binaries at website.

    <!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->

    Computer information

    $ uname -a
    Linux *** [#42](/bitcoin-bitcoin/42/)-Ubuntu SMP Tue Oct 23 15:48:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
    

    <!-- Any extra information that might be useful in the debugging process. -->

    <!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

  2. fanquake added the label RPC/REST/ZMQ on Nov 21, 2018
  3. MarcoFalke commented at 3:15 PM on April 26, 2020: member

    Doesn't sound like an issue with Bitcoin Core

  4. MarcoFalke closed this on Apr 26, 2020

  5. MarcoFalke commented at 11:51 PM on April 26, 2020: member

    Corresponding error in python is OSError: [Errno 7] Argument list too long fyi

  6. Sjors commented at 6:17 PM on September 7, 2020: member

    For Google reference, try something like this:

    cat transaction.txt | bitcoin-cli -stdin sendrawtransaction
    
  7. DrahtBot locked this on Feb 15, 2022

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