Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

session: conn, add possibility to cap the nr. of streams per TCP connection #87

Closed
wants to merge 1 commit into from

Conversation

mmatczuk
Copy link

To cap the number add MaxStreams value to ClusterConfig when initializing the driver.

…ection

To cap the number add MaxStreams value to ClusterConfig when initializing the driver.
@mmatczuk
Copy link
Author

For @vladzcloudius 🎁


func NewLimited(maxStreams int) *IDGenerator {
if maxStreams < 128 {
Copy link

@vladzcloudius vladzcloudius Oct 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? We will definitely want to configure it to less than 128.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably want to adjust the buckets calculation to max(1, maxStreams/ 64)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

@sylwiaszunejko
Copy link
Collaborator

done in #113

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

Successfully merging this pull request may close these issues.

3 participants