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

fix: add maxOutboundStreams option to connection.newStream #415

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

achingbrain
Copy link
Member

When no handler has been registered for a protocol, the upgrader falls back to the default limit of 64 streams for the protocol on the current connection.

This PR adds a maxOutboundStreams option to connection.newStream that gives the user a way to override the default outgoing stream count without having to register a dummy handler.

When no handler has been registered for a protocol, the upgrader
falls back to the default limit of 64 streams for the protocol on
the current connection.

This PR adds a `maxOutboundStreams` option to `connection.newStream`
that gives the user a way to override the default outgoing stream
count without having to register a dummy handler.
@achingbrain achingbrain merged commit 45ae18f into master Jun 14, 2023
@achingbrain achingbrain deleted the fix/add-max-outbound-streams-to-open-stream branch June 14, 2023 14:15
github-actions bot pushed a commit that referenced this pull request Jun 14, 2023
## [@libp2p/interface-connection-v5.1.1](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-connection-v5.1.0...@libp2p/interface-connection-v5.1.1) (2023-06-14)

### Bug Fixes

* add maxOutboundStreams option to connection.newStream ([#415](#415)) ([45ae18f](45ae18f))
@github-actions
Copy link

🎉 This PR is included in version @libp2p/interface-connection-v5.1.1 🎉

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.

1 participant