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

If server goes down, AngularStompDK will automatically reconnect over a hundred times after it comes up at times #49

Open
ghost opened this issue Feb 8, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Feb 8, 2017

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.

@davinkevin
Copy link
Owner

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...

@ghost
Copy link
Author

ghost commented Feb 21, 2017

One user

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:

Connection detail

@davinkevin
Copy link
Owner

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.

@ghost
Copy link
Author

ghost commented Feb 21, 2017

It is just AngularStompDK -> RabbitMQ WebStomp plugin.
Amazon AWS is handling SSL into the WebSocket, but I don't think that would be causing this error? I remember it coming up during testing without that, too.
I will look at the Spring project as soon as I can, thank you for your help so far!

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

1 participant