EventLoop.checkLimit
Internal: Check if a resource limit is hit.
This is used by Layer 2 to enforce higher-level limits like connections.
Parameters
kind | Type of resource being checked |
current | Current usage of the resource |
limit | Configured limit (0 means no limit) |
Returns
true if the resource can be allocated, false if limit is exceeded