-
Notifications
You must be signed in to change notification settings - Fork 12
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
If server goes down, AngularStompDK will automatically reconnect over a hundred times after it comes up at times #49
Comments
I don't really understand the element you describe. Could you describe with a step by step and/or example ? There is a Spring project with simple element. If I shutdown the server and start it again, all the subscription are working well... |
That is all one user. My JavaScript code doesn't detect disconnections nor try to reconnect. When the server was down, AngularStompDK attempted to reconnect over a hundred times in 30 minutes, most of them in the first minute it seems. This itself isn't a problem, but the connections are left open with the server returns to life. Here is detail of connection: |
I don't know if the problem is located at the AngularStompDK level, inside StompJS or outside of the JS scope. Do you have an system between your web client and the backend receiving the Stomp request ? Like a reverse proxy (nginx) or something else which retries the connection if they fail too ? Can you test with the spring project to reproduce this behavior ? Because I won't be able to solve a bug if it's specific to your infrastructure. If you want to remove this behavior for now, you can configure AngularStompDK to not try to reconnect or to use an bigger interval than default one. |
It is just AngularStompDK -> RabbitMQ WebStomp plugin. |
Hello,
If I put the server down to update it, when it comes back up, clients will keep connecting to it over and over. Sometimes it is over a hundred times per client that is only receiving & sending messages.
The text was updated successfully, but these errors were encountered: