Skip to content

DEFAULT_INBOUND_CONNECTION_THRESHOLD

const DEFAULT_INBOUND_CONNECTION_THRESHOLD: 128 = 128

Defined in: packages/core/src/peerborne-config.ts:102

Inbound connections per second that the default configs accept from one host, in place of libp2p’s default of 5.

libp2p attributes a relayed connection to the relay’s host, so every peer that arrives through one relay shares this budget. With the libp2p default, a sixth peer joining or reconnecting through a relay in the same second is refused, and its Noise handshake times out. libp2p still refuses inbound connections while maxIncomingPendingConnections (10) upgrades are pending, and beyond maxConnections.