You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am trying to implement a MaxConcurrentConnections for the ssh server.
I've notice the library already offers a ConnCallback and ConnectionFailedCallback.
However that seems not to be enough to create a guard around the number of maximum connection because we are missing the ConnectionClosedCallback.
With something like ConnectionClosedCallback I could simply implement my rate limiter by doing:
Hello,
I am trying to implement a MaxConcurrentConnections for the ssh server.
I've notice the library already offers a
ConnCallback
andConnectionFailedCallback
.However that seems not to be enough to create a guard around the number of maximum connection because we are missing the
ConnectionClosedCallback
.With something like
ConnectionClosedCallback
I could simply implement my rate limiter by doing:I'll put a PR up just to show you how I've tried it to implement the
ConnectionClosedCallback
, but I am of course open to suggestions!The text was updated successfully, but these errors were encountered: