Ticket #498 (new defect)

Opened 18 months ago

Last modified 3 months ago

IRC client fails to reconnect after IP change.

Reported by: ipv6guru Owned by:
Priority: major Milestone: 0.8.+
Version: 0.7.10 Keywords: irc
Cc:

Description

When buildbot is running on a machine with dynamic IP the IRC client won't rejoin after an IP change.

It will never get a clientConnectionLost because no data is send over the TcpConnection?.

Christoph von Wittich Christoph@…

Submitted: Nobody/Anonymous? ( nobody ) - 2006-08-25 07:19

Extra Comments :-

Date: 2007-01-31 09:43 Sender: r33d

While most IRCds actually send you a PING with a random token that you need to send back in order to remain connected, it seems that other IRCds do not. One way of fixing this is by pinging yourself through the server. Just send a CTCP PING to yourself and calculate how long it takes to get back to you. If it never comes back within a certain time period, you probably have been disconnected and should reconnect. I'll ponder some more on this.

Date: 2007-01-31 09:34 Sender: warner

yeah, we need to have something in the IRC bot that pings or otherwise generates some traffic every once in a while. I think that would be enough to trigger a connectionLost, after which the usual ReconnectingClientFactory? behavior ought to be enough to make it reconnect (with the new IP address).

Does anyone know which IRC command we should use? I know that PING is usually directed at someone else.. what can we do to just make sure we can still talk to the ircd?

Change History

Changed 18 months ago by ipv6guru

Moved from sourceforge

Changed 16 months ago by dustin

  • milestone changed from undecided to 0.7.+

Changed 14 months ago by ddunbar

  • summary changed from IRC bot problem to IRC client fails to reconnect after IP change.

Retitled to match description.

Changed 3 months ago by dustin

  • keywords irc added; sourceforge 1546325 removed

In general, the IRC bot should use some kind of keepalives.

Note: See TracTickets for help on using tickets.