j0ack / discirc

mirrored from https://git.joakode.fr/joack/discirc
http://docs.joakode.fr/discirc/
GNU General Public License v3.0
9 stars 8 forks source link

Reconnect after disconnect #17

Closed crabctrl closed 5 years ago

crabctrl commented 5 years ago

The program is disconnecting from the IRC server (Freenode) about every hour, even without any messages being sent.

Reconnecting after the connection has been lost would fix this issue.

Tested on Ubuntu Server 18.04

j0ack commented 5 years ago

Hi @atoms118

Thank you for reporting this issue, which version of discirc are you using ?

crabctrl commented 5 years ago

I am using the Pip version (if there's a repository somewhere please link!)

Edit: It seems to be reconnecting now, I'm not sure what's up with that, and I'm not sure if it's discirc reconnecting to IRC or if it just crashed and systemd restarted it

j0ack commented 5 years ago

The repository is this one and the version in pip is the same.

Discirc does not reconnect it must be your systemd which restarted it.

I just pushed a new version on a new branch. You need to add a ircAutoReconnect set to True in your config file.

Could you tell me if this fix your issue ?

crabctrl commented 5 years ago

I've installed the fix-17 branch and set the option in my config; I'll get back to you in a few hours to see if it's working. Thanks!

crabctrl commented 5 years ago

Yes, the new reconnect option is working great. Thanks for the quick support!

j0ack commented 5 years ago

You're welcome, I'll update the new version on Pypi asap.