Zebra/zebra-network/src
Arya 73ce8fbef0
fix(network): Limit number of peer connections per IP address, Ignore new peer connections from the same IP and port (#6980)
* Limits num peer conns per ip

* Update zebra-network/src/peer_set/set.rs

* Update zebra-network/src/constants.rs

* Apply suggestions from code review

Co-authored-by: teor <teor@riseup.net>

* Keep old peer connections, rather than replacing them with new connections

* Adds max_conns_per_ip field

Configures the max to usize::MAX for some tests.

* Adds a test to check that max_conns_per_ip is enforced

---------

Co-authored-by: teor <teor@riseup.net>
2023-06-19 00:53:00 +00:00
..
address_book deduplicate first in `new_with_addrs` test function (#6724) 2023-05-19 08:36:09 +00:00
address_book_peers change(rpc): Add getpeerinfo RPC method (#5951) 2023-01-17 07:09:07 +00:00
config feat(net): Cache a list of useful peers on disk (#6739) 2023-06-06 08:28:14 +00:00
isolated fix(log): Stop logging peer IP addresses, to protect user privacy (#6662) 2023-05-14 15:06:07 +00:00
meta_addr feat(net): Cache a list of useful peers on disk (#6739) 2023-06-06 08:28:14 +00:00
peer fix(handshake): Add extra timeout logging to peer TCP connections (#6969) 2023-06-15 21:11:24 +00:00
peer_set fix(network): Limit number of peer connections per IP address, Ignore new peer connections from the same IP and port (#6980) 2023-06-19 00:53:00 +00:00
protocol Delete outdated `TODOs` refering to closed issues (#6732) 2023-05-23 03:33:14 +00:00
address_book.rs feat(net): Cache a list of useful peers on disk (#6739) 2023-06-06 08:28:14 +00:00
address_book_peers.rs change(rpc): Add getpeerinfo RPC method (#5951) 2023-01-17 07:09:07 +00:00
address_book_updater.rs fix: prevent progress bar from panicking using workaround (#6940) 2023-06-14 19:07:02 +00:00
config.rs fix(handshake): Add extra timeout logging to peer TCP connections (#6969) 2023-06-15 21:11:24 +00:00
constants.rs fix(network): Limit number of peer connections per IP address, Ignore new peer connections from the same IP and port (#6980) 2023-06-19 00:53:00 +00:00
isolated.rs fix(log): Stop logging peer IP addresses, to protect user privacy (#6662) 2023-05-14 15:06:07 +00:00
lib.rs feat(net): Cache a list of useful peers on disk (#6739) 2023-06-06 08:28:14 +00:00
meta_addr.rs fix(network): Ignore out of order Address Book changes, unless they are concurrent (#6717) 2023-05-24 23:53:53 +00:00
peer.rs fix(net): Reject nodes using ZClassic ports, and warn if configured with those ports (#6567) 2023-04-28 00:17:37 +00:00
peer_cache_updater.rs feat(net): Cache a list of useful peers on disk (#6739) 2023-06-06 08:28:14 +00:00
peer_set.rs 1. Create an API for a missing inventory registry, but don't register any missing inventory yet (#3255) 2022-02-06 23:05:52 +00:00
policies.rs Delete outdated `TODOs` refering to closed issues (#6732) 2023-05-23 03:33:14 +00:00
protocol.rs Refactor protocol into internal, external modules. 2019-11-27 05:06:01 -05:00