add setting allow_multiple_connections_per_peer#8372
Conversation
|
this seems like a bug in the recent what does "peer" refer to in that name, if it's not IP nor peer-ID? |
peer = IP address + port
// allow multiple connections
// from the same IP address and port
allow_multiple_connections_per_peer,so we could rename -allow_multiple_connections_per_peer
+allow_multiple_connections_per_ip_and_portso in total, would have these settings
|
|
|
that would give but also because setting |
|
TCP/IP does not allow two TCP connections to have the same (src-ip, src-port, dst-ip, dst-port) tuple. I don't believe it's possible for an IP and port to connect multiple times to the same IP and port. |
yes, this allows us to detect stale connections in d95d007 i have replaced the setting -allow_multiple_connections_per_peer
+replace_stale_connectionsfor now this is experimental, so default false the beauty is this:
this may be an edge case, because all peers are running on localhost currently the seeder log shows ideally we should remove the DUPLICATE_PEER message todo: squash commits (or make a new PR) |
fix #8367