On 11 March 2015 at 03:05:45, Daniel Sundström (
dan...@monkeydancers.com) wrote:
> However, now we see connections being terminated once in a while
> with a 530-error, and "attempted to reuse consumertag T_XXXXX".
>
> I'm guessing that the client has dropped - at which point it will
> try to reconnect until connection is established, then try to
> resubscribe to the previous topics. What I don't understand
> is why when this happens as I was under the impression that if the
> client sends a SUBSCRIBE with persistent = 1, and id = "XXX" after
> loosing connection, then it would automatically resubscribe
> to the existing topic queue (given that these queues are created
> by the stomp gateway)? If not, how should resubscription after
> re-establishing connection be done? Also, this seems to not
> happen every time, but once in a while.
>
> Thoughts? Have I misconfigured something? Any pointers would
> be helpful!
This happens because connection loss is not necessarily noticed by the server immediately.
I'd recommend using a value of 5 seconds or greater. Lower ones can result in false