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

Too many opened connections #18

Open
diego-iturriaga opened this issue Nov 28, 2018 · 2 comments
Open

Too many opened connections #18

diego-iturriaga opened this issue Nov 28, 2018 · 2 comments

Comments

@diego-iturriaga
Copy link

Hello, I'm using the library with a webservice but everytime I publish a message, a connection is opened and never closed. The thing is that after a few hours the RAM gets full because of too many connections and everything crashes.

Is it possible to persist one connections and handle channels?

Thank you,
Diego

ps: sorry for my english

@crabhi
Copy link
Owner

crabhi commented Nov 28, 2018

Thanks for the report. How are you using the library? If you use just one client, I think the connection should be reused.

@diego-iturriaga
Copy link
Author

Yes, I use only one client as a static field in my class (like a singleton). But I end up with like 10k connections.

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

No branches or pull requests

2 participants