From 1d62f9d0310d462b88db1872e3db54d5f148a54c Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Tue, 24 Aug 2021 10:16:52 +0200 Subject: [PATCH] ruxc: docs for the new timeouts params --- src/modules/ruxc/doc/ruxc_admin.xml | 80 ++++++++++++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/src/modules/ruxc/doc/ruxc_admin.xml b/src/modules/ruxc/doc/ruxc_admin.xml index 2c1aec6285e..cdfb201fd7c 100644 --- a/src/modules/ruxc/doc/ruxc_admin.xml +++ b/src/modules/ruxc/doc/ruxc_admin.xml @@ -62,7 +62,15 @@ <varname>http_timeout</varname> (int) The interval in miliseconds after which the HTTP GET or POST query - times out. + times out. It is the overall timeout, including DNS resolution, connecting + time, redirects, and reading the response body. Slow DNS resolution + may cause a request to exceed the timeout, because the DNS request + cannot be interrupted with the available APIs. It takes precedence over + http_timeout_read() and http_timeout_write(), but not http_timeout_connect. + See also the comments in 'https://github.com/algesten/ureq/blob/main/src/agent.rs'. + + + Use 0 to disable setting it in the library. @@ -75,6 +83,76 @@ ... modparam("ruxc", "http_timeout", 2000) ... + + + +
+ <varname>http_timeout_connect</varname> (int) + + The interval in miliseconds after which to give up on connecting to the + HTTP/S server. If http_timeout is set, this one takes precedence. The + library beneath has a default 30 seconds connect timeout. + + + Use 0 to disable setting it in the library. + + + + Default value is 5000 (5 secs). + + + + Set <varname>http_timeout_connect</varname> parameter + +... +modparam("ruxc", "http_timeout_connect", 2000) +... + + +
+
+ <varname>http_timeout_read</varname> (int) + + The interval in miliseconds after which the read on HTTP/S connection + socket timeouts. If http_timeout is set, it takes precedence. + + + Use 0 to disable setting it in the library. + + + + Default value is 5000 (5 secs). + + + + Set <varname>http_timeout_read</varname> parameter + +... +modparam("ruxc", "http_timeout_read", 2000) +... + + +
+
+ <varname>http_timeout_write</varname> (int) + + The interval in miliseconds after which the write on HTTP/S connection + socket timeouts. If http_timeout is set, it takes precedence. + + + Use 0 to disable setting it in the library. + + + + Default value is 5000 (5 secs). + + + + Set <varname>http_timeout_write</varname> parameter + +... +modparam("ruxc", "http_timeout_write", 2000) +...