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

Make MaxChanLen a per Conn option #42

Closed
wants to merge 2 commits into from
Closed

Conversation

chendo
Copy link

@chendo chendo commented Dec 9, 2014

Our particular use case uses many low throughput subscriptions. The default channel length of 64k uses quite a lot of memory and isn't necessary for us.

This PR adds the ability to override MaxChanLen

@derekcollison
Copy link
Member

Still failed, but could be transient.

@chendo
Copy link
Author

chendo commented Dec 11, 2014

Yeah.. the failures are to do with reconnects which I didn't touch at all. The MaxChanLen used in the tests are the same value as the existing code too.

@chendo
Copy link
Author

chendo commented Dec 11, 2014

Can't figure out how to make Travis rebuild without pushing more code :/

@derekcollison
Copy link
Member

I re-ran the tests with the same failures, and without your changes they pass, so something is impacting them.

@derekcollison
Copy link
Member

I fixed this separately..

@chendo
Copy link
Author

chendo commented Feb 1, 2015

Whoops, I forgot about this PR. Works for me, thanks!

@chendo chendo deleted the maxchanlen branch February 1, 2015 01:13
TheGhoul21 pushed a commit to TheGhoul21/nats.go that referenced this pull request Jun 20, 2024
…ptions

Change Arc to Box for callbacks, remove Clone impl on ConnectionOptions
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.

2 participants