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

Reconnecting changes state of session #97

Open
frederikbosch opened this issue Oct 12, 2016 · 2 comments
Open

Reconnecting changes state of session #97

frederikbosch opened this issue Oct 12, 2016 · 2 comments

Comments

@frederikbosch
Copy link
Contributor

frederikbosch commented Oct 12, 2016

In my app I connect to a queue with 5 threads with Heartbeat enabled on the connection and prefetch_count enabled on the subscription which is equal to 1. All works great.

However, there are connections that have very little connectivity causing the session to disconnect. Now it is great that reconnect is build-in, but there seems to be a problem after reconnecting. Suddenly my worker queue turns into a publish/subscribe queue. All 5 threads receive the same message when it is published on the queue, where as before reconnecting only one thread/worker received the message.

@zslayton My guess is that some of the headers are not added again after reconnecting. Do you have a clue where to look for? Because I would love to help with solving issue. Maybe you can point me into a direction where things might go wrong. Of course, I will also start investigating myself too.

@frederikbosch
Copy link
Contributor Author

frederikbosch commented Oct 12, 2016

In the source I find two possible causes.

  1. There is a problem with cloning the session builder
  2. The subscription frames are not copied into the new subscription.

@frederikbosch
Copy link
Contributor Author

Since there is very little connectivity I changed the number of threads to one. Which is a nice workaround on a server with little activity, but that could be trouble some for high traffic servers.

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