This repository has been archived by the owner on Apr 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Don't count connections in the grace period #46
Comments
Sounds fair. Let's only count the connections we can effectively close. |
The danger is that we could end up closing high-value connections in place of lower-graded connections that happen to be within their grace period. In some protocols this could lead to killing high quality long-lived peers while keeping peers we only connected to for a single RPC or so. I think burst modelling (as I’ve proposed for v2) will help here. |
This is going to be a little tricky to implement. |
We don't have to implement the optimal solution. We can:
Although, the optimal solution shouldn't be that hard:
|
Stebalien
added a commit
that referenced
this issue
Jul 25, 2019
Stebalien
added a commit
that referenced
this issue
Jul 25, 2019
Stebalien
added a commit
that referenced
this issue
Jul 25, 2019
Stebalien
added a commit
that referenced
this issue
Jan 17, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The connection manager currently counts connections in the grace period towards the connection limit. Unfortunately, this means we can end up killing every (or almost every) single connection not in the grace period if we get enough grace-period connections.
We should:
The text was updated successfully, but these errors were encountered: