Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

feat: add server.maxConnections option #213

Merged
merged 3 commits into from
Oct 11, 2022

Conversation

dapplion
Copy link
Contributor

@dapplion dapplion commented Oct 6, 2022

https://nodejs.org/api/net.html#servermaxconnections

If set reject connections when the server's connection count gets high

Useful to prevent too resource exhaustion via many open connections on high bursts of activity

@dapplion dapplion changed the title Add server.maxConnections option feat: add server.maxConnections option Oct 6, 2022
@achingbrain
Copy link
Member

This is great - please can you add a test to ensure there are no regressions in future.

@dapplion
Copy link
Contributor Author

dapplion commented Oct 7, 2022

This is great - please can you add a test to ensure there are no regressions in future.

Added test

@achingbrain achingbrain merged commit 99e88a4 into libp2p:master Oct 11, 2022
github-actions bot pushed a commit that referenced this pull request Oct 11, 2022
## [4.1.0](v4.0.2...v4.1.0) (2022-10-11)

### Features

* add server.maxConnections option ([#213](#213)) ([99e88a4](99e88a4))
@github-actions
Copy link

🎉 This PR is included in version 4.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants