]> git.eshelyaron.com Git - emacs.git/commit
Reuse process in erc-server-delayed-check-reconnect
authorF. Jason Park <jp@neverwas.me>
Tue, 24 Dec 2024 06:21:34 +0000 (22:21 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 4 Jan 2025 20:22:05 +0000 (21:22 +0100)
commit97c0f0b43adba1948bf894b0d424cddd798bb34a
treedef8eb9b273a87c9f767ea99eceee936f3846a8a
parent8b84d66723ff4c52bc61d0c7b1e2e25b8ac3c8ce
Reuse process in erc-server-delayed-check-reconnect

* doc/misc/erc.texi (Integrations): Set `erc-server-reconnect-function'
to `erc-server-delayed-check-reconnect' in SOCKS example, and add
definition for `erc-open-socks-tls-stream'.  Mention possible
inaccuracies related to error detection with certain reconnect
strategies.
* lisp/erc/erc-backend.el (erc-server--reconnect-opened): New function.
(erc-server-delayed-check-reconnect): Attempt to reuse process if server
sends a complete PONG, and attempt to accommodate connectors that set
:nowait to nil.
(erc--server-delayed-check-connectors): Remove variable.
(erc-server-prefer-check-reconnect): Inline what was the internal
variable `erc--server-delayed-check-connectors' because it's no longer
used in unit tests.  Add `erc-open-socks-tls-stream' to the set of
connector functions thought to be compatible with the "check" reconnect
strategy.
* test/lisp/erc/erc-scenarios-base-auto-recon.el
(erc-scenarios-base-auto-recon-no-proto): Adapt to expect "reuse" behavior.
* test/lisp/erc/resources/base/reconnect/ping-pong.eld: Delete unused file.
* test/lisp/erc/resources/base/reconnect/unexpected-disconnect.eld:
Capture PING cookie to send back to client.
* test/lisp/erc/resources/erc-d/resources/proxy-solo.eld: Delete unused
file.  (Bug#62044)

(cherry picked from commit f5ebe47ba7723919f09adf8f28d896cfa8757842)
doc/misc/erc.texi
lisp/erc/erc-backend.el
test/lisp/erc/erc-scenarios-base-auto-recon.el
test/lisp/erc/resources/base/reconnect/ping-pong.eld [deleted file]
test/lisp/erc/resources/base/reconnect/unexpected-disconnect.eld
test/lisp/erc/resources/erc-d/resources/proxy-solo.eld [deleted file]