From 351b3e8a57c9e0143b7b6f3ed2160dcdce00225e Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Mon, 18 Sep 2023 08:39:19 +0100 Subject: Add connect timeout and overall timeout (#1238) * Add connect timeout and overall timeout * Make it configurable * Fix test * Add docs --- docs/docs/config/config.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs') diff --git a/docs/docs/config/config.md b/docs/docs/config/config.md index 5f54790c..e0403d2a 100644 --- a/docs/docs/config/config.md +++ b/docs/docs/config/config.md @@ -292,3 +292,16 @@ macOS does not have an Alt key, although terminal emulators can often # Use Ctrl-0 .. Ctrl-9 instead of Alt-0 .. Alt-9 UI shortcuts ctrl_n_shortcuts = true ``` + +## network_timeout +Default: 30 + +The max amount of time (in seconds) to wait for a network request. If any +operations with a sync server take longer than this, the code will fail - +rather than wait indefinitely. + +## network_connect_timeout +Default: 5 + +The max time (in seconds) we wait for a connection to become established with a +remote sync server. Any longer than this and the request will fail. -- cgit v1.3.1