---
title: newConnectionLimit
framework: network
role: symbol
role_heading: Instance Property
path: network/nwlistener/newconnectionlimit
---

# newConnectionLimit

The remaining number of inbound connections to deliver before rejecting connections.

## Declaration

```swift
final var newConnectionLimit: Int { get set }
```

## Discussion

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.

## See Also

### Receiving Connections

- [newConnectionHandler](network/nwlistener/newconnectionhandler.md)
- [InfiniteConnectionLimit](network/nwlistener/infiniteconnectionlimit.md)
