libp2p / go-libp2p-pubsub

The PubSub implementation for go-libp2p
https://github.com/libp2p/specs/tree/master/pubsub
Other
321 stars 185 forks source link

Implement outbound peer quotas and limit overgraft #339

Closed vyzo closed 4 years ago

vyzo commented 4 years ago

Introduces a new overlay parameter, D_out, which is used to control the number of outbound connected peers we should keep in the mesh.

During mesh maintenance:

In addition, when receiving a graft over the D_hi limit, the graft is rejected unless it comes from an outbound peer.

cc @daviddias @raulk

vyzo commented 4 years ago

rebased on master for merging.