stomp-client-python
stomp-client-python copied to clipboard
No automatic reconnection
If the connection fails, the client does not automatically reconnect itself - it just waits for a period of time and exits.
Ideally it should reconnect itself and log the disconnection.
Hi @poggs ,
I would like to ask if you solve the reconnection issue. My client is getting disconnect quite often and I am not able to determine where reside the problem:
Thanks,
Paul
The main issue with implementing this is that the way stomp.py handles disconnects and reconnects is completely and utterly broken, in some cases the disconnect handler will be fired twice, in some cases (but not others), it'll be run during a failure to connect (especially irritating and problematic if your disconnect handler tries more than once to connect), and in some cases (but not others) an apparently successful reconnection will yield a listener which believes it's connected, but never receives anything ever again
I've made some headway on semaphore-involving workarounds for these issues in ironswallow, which need some more testing, but I'd be happy to submit a PR when I've got something which works reliably