diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-06-12 14:48:14 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-06-12 14:48:20 -0400 |
commit | 5af16a4db76f8c00b6c9598147ab49d79be1f149 (patch) | |
tree | 79562039e797b5d698e1d5ef4e0e980692aaecbc /test/functional/test_framework/socks5.py | |
parent | 19e919217e6d62e3640525e4149de1a4ae04e74f (diff) | |
parent | 45eff751c6d07007dabc365dc4c0e6c63e3fe5cf (diff) |
Merge #16756: test: Connection eviction logic tests
45eff751c6d07007dabc365dc4c0e6c63e3fe5cf Add functional test for P2P eviction logic of inbound peers (Martin Zumsande)
Pull request description:
This adds a functional test for the eviction logic for inbound peers, which is triggered when the number of maximum connections is exceeded.
The functional test covers eviction protection for peers that have sent us blocks or txns recently, or that have faster pings. I couldn't find a way to test the logic of `CConnman::AttemptToEvictConnection` that is based on netgroup (see #14210 for related discussion)
Fixes #16660 (at least partially).
[Edit: Earlier, this PR also contained a unit test, which was removed after the discussion]
ACKs for top commit:
jonatack:
ACK 45eff751c6d07007dabc365dc4c0e6c63e3fe5cf
naumenkogs:
Tested ACK 45eff75
fjahr:
re-ACK 45eff751c6d07007dabc365dc4c0e6c63e3fe5cf
andrewtoth:
re-ACK 45eff751c6d07007dabc365dc4c0e6c63e3fe5cf
Tree-SHA512: 177208ab6f30dc62da1cc5f51e654f7c9770d8c6b42aca6ae7ecb30e29d3096e04d75739578e7d149a0f29dd92652b4a707e93c0f1be8aa7ed315e6ec3ab07a4
Diffstat (limited to 'test/functional/test_framework/socks5.py')
0 files changed, 0 insertions, 0 deletions