]> git.eshelyaron.com Git - emacs.git/commit
Add probing erc-server-reconnect-function variant
authorF. Jason Park <jp@neverwas.me>
Wed, 8 Mar 2023 14:14:36 +0000 (06:14 -0800)
committerF. Jason Park <jp@neverwas.me>
Sat, 8 Apr 2023 21:23:50 +0000 (14:23 -0700)
commit03eddc99242bb430a82f468251ed76602d457702
tree3df1c7be54fdaa50905c783eecea5019128debf6
parent4da7d24988ae096d757021eb8ed9d014990de16e
Add probing erc-server-reconnect-function variant

* lisp/erc/erc-backend.el (erc-server-reconnect-timeout): Replace
questionable claim with recommendation for alternate value when
experiencing nick rejections.
(erc-server-reconnect-function): Add new, somewhat experimental value
`erc-server-delayed-check-reconnect'.
(erc--server-connect-function): Add variable for process-dialing
monitor, a function.
(erc--server-propagate-failed-connection): Add function to serve as
default monitor to run on process creation and maybe execute failure
handlers.
(erc-server-connect): Run `erc--server-connect-function' for async
processes one second after creation.
(erc--server-reconnect-timeout, erc--server-reconnect-timeout-check,
erc--server-reconnect-timeout-scale-function,
erc--server-reconnect-timeout-double): Add supporting variables and
functions for `erc-server-delayed-check-reconnect'.
(erc-server-delayed-check-reconnect): Add possible alternate value for
option `erc-server-reconnect-function' that only attempts to reconnect
after hearing back from the server.
(erc-schedule-reconnect): Ensure previous `erc-server-process' is
deleted.
* test/lisp/erc/erc-scenarios-base-auto-recon.el: New file.
* test/lisp/erc/resources/base/reconnect/just-eof.eld: New file.
* test/lisp/erc/resources/base/reconnect/just-ping.eld: New file.
* test/lisp/erc/resources/base/reconnect/ping-pong.eld: New file.
* test/lisp/erc/resources/base/reconnect/unexpected-disconnect.eld:
New file.
* test/lisp/erc/resources/erc-scenarios-common.el
(erc-scenarios-common--make-bindings): Shadow
`timer-list'.  (Bug#62044.)
lisp/erc/erc-backend.el
test/lisp/erc/erc-scenarios-base-auto-recon.el [new file with mode: 0644]
test/lisp/erc/resources/base/reconnect/just-eof.eld [new file with mode: 0644]
test/lisp/erc/resources/base/reconnect/just-ping.eld [new file with mode: 0644]
test/lisp/erc/resources/base/reconnect/ping-pong.eld [new file with mode: 0644]
test/lisp/erc/resources/base/reconnect/unexpected-disconnect.eld [new file with mode: 0644]
test/lisp/erc/resources/erc-scenarios-common.el