fix -maxconnections #42

pull dooglus wants to merge 1 commits into bitcoin:master from dooglus:maxconnections-fix changing 1 files +14 −1
  1. dooglus commented at 11:53 PM on January 23, 2011: contributor

    The -maxconnections=N command line argument is meant to limit the total number of connections to N. It reserves 8 (or less, if N<8) slots for outgoing connections, and is meant to allow N-8 incoming connections. But the calculation is slightly wrong, and the existing outgoing connections are counted twice.

    This fixes it.

  2. Fix -maxconnections. It used to account for the 8 outbound connections twice when calculating the number of slots left for incoming connections. 4698dd9a02
  3. msgilligan referenced this in commit ac06646ace on Jul 17, 2014
  4. rdponticelli referenced this in commit 83fd36c6f8 on Nov 26, 2014
  5. dexX7 referenced this in commit 5054ebab9f on May 15, 2015
  6. tempgit9 referenced this in commit 66c5ffb6eb on Jan 16, 2017
  7. yes-maxheart referenced this in commit d283cc3078 on Dec 16, 2018
  8. Warchant referenced this in commit 040921987f on Dec 31, 2019
  9. velesnetwork referenced this in commit 8a5cfba386 on Jan 12, 2020
  10. MarcoFalke referenced this in commit 54532f46c4 on Nov 18, 2020
  11. MarcoFalke referenced this in commit 90c0f267bd on Dec 8, 2020
  12. satindergrewal referenced this in commit 31d59f9d8f on Jun 22, 2021
  13. rajarshimaitra referenced this in commit 0d546e693f on Aug 5, 2021
  14. 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 15:16 UTC

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