Package: tircd
Version: 0.7-1
Severity: normal
Tags: patch
bip (an IRC proxy) drops tircd connections after roughly 10 minutes.
bip logs show that bip is closing the connections because tircd's ping
responses have lagged out.
bip uses PONG replies (and only PONG replies) from IRC servers to
determine whether bip's connection to the server has lagged out.
bip's definition of a valid PONG reply is an IRC line containing three
IRCwords, which has been satisfied by every IRC server I have seen so far,
until tircd. tircd's PONG response contains only two IRCwords.
This patch inserts a server hostname argument ('tircd') into PONG
responses, which keeps bip (and any other software that actually cares
about the syntax of PONG responses) happy.
commit a1106de44fc28ff8c22b92c8d8874f434e269e8a
Author: Zygo Blaxell <[email protected]>
Date: Sat Sep 12 02:54:40 2009 -0400
Make tircd's PONG reply look like other servers
diff --git a/usr/bin/tircd b/usr/bin/tircd
index 8b4e677..a493209 100644
--- a/usr/bin/tircd
+++ b/usr/bin/tircd
@@ -852,7 +852,7 @@ sub irc_ping {
my ($kernel, $heap, $data) = @_[KERNEL, HEAP, ARG0];
my $target = $data->{'params'}[0];
- $kernel->yield('server_reply','PONG',$target);
+ $kernel->yield('server_reply','PONG','tircd',$target);
}
sub irc_away {
-- System Information:
Debian Release: 5.0.3
APT prefers stable
APT policy: (500, 'stable'), (189, 'testing'), (179, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.28-linode15 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages tircd depends on:
ii libnet-twitter-perl 2.10-1 Perl interface to twitter.com
ii libpoe-filter-ircd-perl 2.40-1 POE-based parser for the IRC proto
tircd recommends no packages.
tircd suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]