GNU bug report logs - #54087
28.0.91; rcirc: irc.gnome reg timeout; reconnects after /quit

Previous Next

Package: emacs;

Reported by: Ken Raeburn <raeburn <at> redhat.com>

Date: Mon, 21 Feb 2022 11:15:02 UTC

Severity: normal

Found in version 28.0.91

Full log


View this message in rfc822 format

From: Ken Raeburn <raeburn <at> redhat.com>
To: 54087 <at> debbugs.gnu.org
Subject: bug#54087: 28.0.91; rcirc: irc.gnome reg timeout; reconnects after quit
Date: Wed, 23 Feb 2022 07:03:50 -0500
FWIW, I'm hacking around the bug for now by advising a function, and it 
seems to be working for both irc.gnome.org and my company IRC server. So 
the trailing space may have been the only issue blocking registration 
completion.


(defun kr-munge-args--rcirc-handler-CAP (all-args)
  (let ((cap-args (nth 2 all-args)))
    (while cap-args
      (if (string-match " +$" (car cap-args))
      (setcar cap-args (substring (car cap-args)
                      0 (match-beginning 0))))
      (setq cap-args (cdr cap-args))))
  all-args)

(if (version= emacs-version "28.0.91")
    (advice-add 'rcirc-handler-CAP
        :filter-args #'kr-munge-args--rcirc-handler-CAP))


So, to recap:

1) trailing space in CAP reply breaks registration

2) /quit triggers reconnect (if reconnection enabled)

3) name resolution failure not reported, just a vague connection failure

The parallel connection management seems to work nicely. (I could wish 
for separate threads so that when, say, Gnus ties up the main thread for 
several minutes trying to connect to a server that's down, the IRC 
servers don't decide my client has stopped responding. At least, I would 
hope other threads can run at that point.) I'll see if I run into any 
other problems in the next few days...

Ken





This bug report was last modified 3 years and 113 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.