newConnectionLimit
The remaining number of inbound connections to deliver before rejecting connections.
Declaration
final var newConnectionLimit: Int { get set }Discussion
When the new connection limit is set to a non-infinite value, it will decrement for every received connection. Once the value hits zero, new connections will be queued and eventually blocked, until you raise the limit. This allows you to limit the rate of inbound connections you handle.
By default, the limit is InfiniteConnectionLimit. When the limit is infinite, it does not decrement but allows all inbound connections.