Warn users about insane maxconnections. #6289

issue chronicbitcoin opened this issue on June 16, 2015
  1. chronicbitcoin commented at 10:52 AM on June 16, 2015: none

    There's some comments where users make statements about how they set their maxconnections to stupid levels (1000+) believing that they will contribute to the network or be safer accepting zero confirmation transactions. Should the client be warning them about how crazy that is, or enforcing some sort of hard cap for the configuration? It seems unlikely that any node is actually able to sustain that number of connections without either becoming unusably slow or running out of file descriptors.

  2. laanwj commented at 12:50 PM on June 16, 2015: member

    Running out of file descriptors is avoided, see https://github.com/bitcoin/bitcoin/blob/master/src/init.cpp#L727 . It tries to compensate and print a warning to the log, but if not possible it gives an error at startup.

    More generally, what is "insane" depends on the hardware and OS. It's entirely possible to handle 1000 connections if there is enough memory available.

  3. chronicbitcoin commented at 1:29 PM on June 16, 2015: none

    Fair enough.

  4. chronicbitcoin closed this on Jun 16, 2015

  5. DrahtBot 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 21:15 UTC

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