Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
I’m on Bitcoin Core v29.0.0
I noticed that when at the max number of peers (124 total; 10 outbound; 114 inbound) the most recent peer connection is continually dropped after 1 second and another peer is selected. I can’t imagine this is good behavior for the network.
As you can see, my peer count is very high (basically == number of seconds I’ve been at 124 peers) and the most recent peer only ever has an age of 1s.
Expected behaviour
I would expect the program to stop accepting connections when peers == max_peers, instead of accepting the connection and dropping it 1 second later.
Steps to reproduce
Leave client running on a high speed network long enough to hit 124 peers.
Relevant log output
No response
How did you obtain Bitcoin Core
Pre-built binaries
What version of Bitcoin Core are you using?
v29.0.0
Operating system and version
FreeBSD 14.3
Machine specifications
No response