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

Browser opens multiple connections per session and keeps them indefinitely #65

Open
msmolyak opened this issue Oct 31, 2014 · 2 comments

Comments

@msmolyak
Copy link

I am using 0.7 version of Events Push plugin. The web page contains logic for registering to 4 different events. After introduction of the plugin we noticed sharp increase of open connections on the Tomcat server (version 7). Most of the connections stay open for a long time and come from Atmosphere library. Moreover we see browser maintaining multiple connections to the server, some with 3 out of 4 events, some with all 4. I tried adding
grails.push.server.initParams to Config.groovy with
org.atmosphere.cpr.CometSupport.maxInactiveActivity and
org.atmosphere.websocket.maxIdleTime parameters, but they have no effect.

Is it normal for a browser to open multiple Atmosphere connection to the server. Is it normal for these connection to stay open indefinitely? How to limit the connections to one per browser? How to make connection time out?

@jpozorio
Copy link

jpozorio commented Sep 9, 2015

Hi msmolyak,
how you solve that problem?

Thanks.

@msmolyak
Copy link
Author

We moved away from Grails and rewrote the back end in Vert.x. Vert.x has a built-in mechanism for push notifications.

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