agl / xmpp-client

An XMPP client with OTR support
BSD 3-Clause "New" or "Revised" License
365 stars 71 forks source link

Auto Reconnect #74

Open christophershirk opened 9 years ago

christophershirk commented 9 years ago

I'd be interested in auto reconnection logic. Would this be useful to anyone else?

I get several disconnects per day due to laptop sleeping/resuming and changing network interfaces.

xmpp-client output after disconnection:

* (11:15AM) EOF
* (11:15AM) Exiting because channel to server closed

It looks like the password already remains in memory during the entire session: https://github.com/agl/xmpp-client/blob/8142601029916111c880f0c4b790d38959804170/ui.go#L234 .

DrWhax commented 9 years ago

Yes, this bothers me a lot.

sycamoreone commented 9 years ago

Me too. And I don't think it is that hard to fix. I you aren't faster, I will give it a try,