Skip to content

[bug]: PeerConnection accumulation of ConnRequests for single peers not recycled #10086

@ziggie1984

Description

@ziggie1984

Looking at some mainnet PEER subsystem logs I see the persistentConnection request counter increase endlessly as long as the peer is offline. The only explanation how that could happen from my current understanding is when the rpc endpoint ConnectToPeer is used with the perm flag. However this does not happen on the node I am observing to this needs to be investigated.

This seems like a bug in the connection P2P system. Some peers accumulate more than 1000 persistent peer entries and I cannot explain how this can happen.

For example:

2025-07-13 23:58:58.534 [WRN] SRVR: Already have 989 persistent connection requests for 0364913d18a19c671bb36dd04d6ad5be0fe8f2894314c36a9db3f03c2d414907e1@192.243.215.102:51426, connecting anyway

Almost 989 connection requests are in memory and never cleaned up.

Raising the issue here to investigate at a later point in time

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions