From a52ef48add50900ea362532fc23026fce09db268 Mon Sep 17 00:00:00 2001 From: Quentin Perret Date: Fri, 7 Jan 2022 15:00:14 +0000 Subject: [PATCH] docs: Document local_echo_threshold_ms Document the recently introduced 'local_echo_threshold_ms' config knob. --- docs/config/lua/SshDomain.md | 18 ++++++++++++++++++ docs/config/lua/TlsDomainClient.md | 22 ++++++++++++++++++++++ docs/multiplexing.md | 20 ++++++++++++++++++++ 3 files changed, 60 insertions(+) diff --git a/docs/config/lua/SshDomain.md b/docs/config/lua/SshDomain.md index fbca5f5cc..8fb8be0bb 100644 --- a/docs/config/lua/SshDomain.md +++ b/docs/config/lua/SshDomain.md @@ -108,3 +108,21 @@ return { } ``` +You may now specify the round-trip latency threshold for enabling predictive +local echo using `local_echo_threshold_ms`. If the measured round-trip latency +between the wezterm client and the server exceeds the specified threshold, the +client will attempt to predict the server's response to key events and echo the +result of that prediction locally without waiting, hence hiding latency to the +user. This option only applies when `multiplexing = "WezTerm"`. + +```lua +return { + ssh_domains = { + { + name = "my.server", + remote_address = "192.168.1.1", + local_echo_threshold_ms = 10, + } + }, +} +``` diff --git a/docs/config/lua/TlsDomainClient.md b/docs/config/lua/TlsDomainClient.md index c4fe5be4b..8a5752ab0 100644 --- a/docs/config/lua/TlsDomainClient.md +++ b/docs/config/lua/TlsDomainClient.md @@ -65,3 +65,25 @@ It is a lua object with the following fields: -- remote_wezterm_path = "/home/myname/bin/wezterm" } ``` + +*Since: nightly builds only* + +You may now specify the round-trip latency threshold for enabling predictive +local echo using `local_echo_threshold_ms`. If the measured round-trip latency +between the wezterm client and the server exceeds the specified threshold, the +client will attempt to predict the server's response to key events and echo the +result of that prediction locally without waiting, hence hiding latency to the +user. This option only applies when `multiplexing = "WezTerm"`. + +```lua +return { + tls_domains = { + { + name = "server,name", + bootstrap_via_ssh = "server.hostname", + remote_address = "server.hostname:8080", + local_echo_threshold_ms = 10, + } + }, +} +``` diff --git a/docs/multiplexing.md b/docs/multiplexing.md index 713d4d122..cd8ad3095 100644 --- a/docs/multiplexing.md +++ b/docs/multiplexing.md @@ -157,6 +157,26 @@ return { } ``` +*Since: nightly builds only* + +You may now specify the round-trip latency threshold for enabling predictive +local echo using `local_echo_threshold_ms`. If the measured round-trip latency +between the wezterm client and the server exceeds the specified threshold, the +client will attempt to predict the server's response to key events and echo the +result of that prediction locally without waiting, hence hiding latency to the +user. This option only applies when `multiplexing = "WezTerm"`. + +```lua +return { + unix_domains = { + { + name = "unix", + local_echo_threshold_ms = 10, + } + }, +} +``` + ### Connecting into Windows Subsystem for Linux *Note: this only works with WSL 1. [WSL 2 doesn't support AF_UNIX interop](https://github.com/microsoft/WSL/issues/5961)*