From: Lars Ingebrigtsen <larsi@gnus.org>
To: Robert Brown <brown@google.com>
Cc: 18527@debbugs.gnu.org, Robert Brown <robert.brown@gmail.com>
Subject: bug#18527: 24.3; ERC does not reconnect when server disconnects me
Date: Sun, 27 Dec 2015 21:41:39 +0100 [thread overview]
Message-ID: <87io3jbp4s.fsf@gnus.org> (raw)
In-Reply-To: <u9amw9rsp9q.fsf@brown.nyc.corp.google.com> (Robert Brown's message of "Mon, 22 Sep 2014 10:28:33 -0400")
Robert Brown <brown@google.com> writes:
> I use ERC to connect to IRC servers. ERC's automatic reconnection
> feature does not appear to work when the IRC server initiates the
> disconnection. I have erc-server-reconnect-attempts set to t.
>
> Here is a recent example:
>
> *** netjoin: *.net *.split, 20 were split [10:15]
> ==> ERROR from irc.freenode.net: Closing Link: nat/google/x-onzfdymblldcwdch
> (Ping timeout: 272 seconds) [10:47]
> *** irc.freenode.net closed
>
> Connection failed! Not re-establishing connection.
>
> *** ERC terminated: finished
Can you load an uncompiled erc source and then edebug through this to
see what it is that says that we don't want to connect?
(defsubst erc-server-reconnect-p (event)
"Return non-nil if ERC should attempt to reconnect automatically.
EVENT is the message received from the closed connection process."
(or erc-server-reconnecting
(and erc-server-auto-reconnect
(not erc-server-banned)
(not erc-server-error-occurred)
;; make sure we don't infinitely try to reconnect, unless the
;; user wants that
(or (eq erc-server-reconnect-attempts t)
(and (integerp erc-server-reconnect-attempts)
(< erc-server-reconnect-count
erc-server-reconnect-attempts)))
(or erc-server-timed-out
(not (string-match "^deleted" event)))
;; open-network-stream-nowait error for connection refused
(if (string-match "^failed with code 111" event) 'nonblocking t))))
My guess would be erc-server-error-occurred, and in that case I wonder
what triggered that variable to become set.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2015-12-27 20:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-22 14:28 bug#18527: 24.3; ERC does not reconnect when server disconnects me Robert Brown
2015-12-27 20:41 ` Lars Ingebrigtsen [this message]
2015-12-28 18:18 ` Robert Brown
2015-12-28 18:23 ` Lars Ingebrigtsen
[not found] ` <87vb7itot1.fsf@gnus.org>
2015-12-28 18:29 ` bug#18527: [Erc-discuss] " Michael Olson
2015-12-28 19:53 ` Lars Ingebrigtsen
[not found] ` <87a8outko1.fsf@gnus.org>
2015-12-28 19:54 ` Robert Brown
2016-03-25 18:21 ` bug#18527: the fix for this bug was clobbered by a subsequent merge commit Chris Brannon
2016-03-27 0:19 ` John Wiegley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87io3jbp4s.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=18527@debbugs.gnu.org \
--cc=brown@google.com \
--cc=robert.brown@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.