mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-07-30 17:30:40 +00:00
RateControl
This commit is contained in:
@@ -112,6 +112,11 @@ public abstract class NetworkServer<TConnection> : IDestructible where TConnecti
|
||||
c.Assign(s);
|
||||
Add(c);
|
||||
|
||||
// A derived server can reject admission (for example, due to a per-peer
|
||||
// connection quota) by not adding the connection and closing its socket.
|
||||
if (!Connections.Contains(c))
|
||||
continue;
|
||||
|
||||
try
|
||||
{
|
||||
ClientConnected(c);
|
||||
|
||||
Reference in New Issue
Block a user