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

QXMPP can get into connection limbo if connection to server is refused #166

Open
jankusanagi opened this issue Nov 27, 2018 · 0 comments
Open

Comments

@jankusanagi
Copy link
Contributor

jankusanagi commented Nov 27, 2018

I noticed this when a server I use rebooted for an upgrade, and left my QXMPP-based bot in reconnection limbo.

I can reproduce it easily. If I set my bot to connect to, for instance, my router's IP, so the connection will be refused, QXMPP's logging shows this:

Tue Nov 27 22:55:33 2018 INFO Connecting to 192.168.1.1:5222
Tue Nov 27 22:55:33 2018 WARNING Socket error: Connection refused

and then nothing else for, at least, one full hour.
The error() signal from the QXmppClient object is never emitted. I understand maybe those signals only refer to errors when the session has been actually started, but then, how can we (sanely) handle this kind of thing?
This happens both with autoreconnection enabled and disabled.

#98 and #119 seem to be related. I have QXMPP 0.9.3 via Mageia packages.

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