Denial of service flood prevention #72

pull gavinandresen wants to merge 2 commits into bitcoin:master from gavinandresen:DoS changing 1 files +37 −33
  1. gavinandresen commented at 7:22 PM on February 16, 2011: contributor

    Still todo:

    set -maxconnections default.

  2. Denial-of-service flood control
    Drop connections that are either sending messages too fast to handle or are processing messages so slowly data starts to back up.
    Adds two new options:
      -maxreceivebuffer  Default: 2000 (2000*1000 bytes)
      -maxsendbuffer     Default: 256  (256*1000 bytes)
    9cbae55a6e
  3. jgarzik commented at 7:33 PM on February 16, 2011: contributor

    ACK, thanks

  4. Set maxconnections default to 125 5a3e82f9f5
  5. gavinandresen commented at 12:38 AM on February 17, 2011: contributor

    Tested by re-downloading entire block chain with -maxreceivebuffer=500 -maxsendbuffer=100 (no issues), after trying with even smaller limits (there were issues-- disconnections due to running out of receivebuffer space-- but no crashes, it handled the disconnect then find another peer gracefully).

    Test and regular faucets are now running with this patch.

  6. FuzzyBearBTC referenced this in commit 934f8dbc4c on Mar 30, 2014
  7. irigi referenced this in commit 7cfcf8649f on Jun 4, 2014
  8. rdponticelli referenced this in commit b2bfdabdeb on Nov 26, 2014
  9. dexX7 referenced this in commit 34247f0609 on Jun 2, 2015
  10. keo referenced this in commit 27155aa218 on Feb 5, 2016
  11. ptschip referenced this in commit 37b84375fc on Aug 17, 2016
  12. cryptapus referenced this in commit 1f12b27110 on Nov 30, 2017
  13. classesjack referenced this in commit a0dc49289a on Jan 2, 2018
  14. lateminer referenced this in commit 18c8bfa505 on Feb 23, 2019
  15. attilaaf referenced this in commit 91198502c4 on Sep 20, 2019
  16. KolbyML referenced this in commit bc86927231 on Sep 4, 2020
  17. rajarshimaitra referenced this in commit 903197da8d on Mar 23, 2021
  18. 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:16 UTC

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