AM not reconnecting upon AMQ restart
sandrods opened this issue · comments
Hi,
Whenever I restart my AMQ server, I loose the connection between it and AM. The Number of Consumers keeps on 0. Doesn't AM should reconnect to AMQ on this cases?
TIA,
Sandro
Relevant part of broker.yml:
production:
adapter: stomp
reliable: true
host: rsfilas.xxx
login: "rails"
passcode: "xxxxxxx"
I have written to the AMQ folks about this in the past, that they did not handle signaling to connected consumers on restart.
I'm open to suggestions - maybe added a thread that checks the connection somehow?
I think that this problem may be caused by the same bug that I found in issue #11. The fix I attached to that issue should fix this problem. Another way to fix this problem is to not set 'reliable: true' in your broker.yml. Just leave that out and the connection will default to reliable. Having that in the broker.yml causes reliable to be set to false currently due to this bug.
Well, taking the 'reliable=true' out of the broker.yml did the trick.
Looking at your fix, the original code seems obviously wrong.
Thanks a bunch, and let's hope @kookster would incorporate your fix in his branch
I merged in the pull requests, thanks!