]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Set default HTTP transfer timeout to 900 146/head
authorJob Snijders <job@sobornost.net>
Thu, 22 Aug 2024 16:40:42 +0000 (16:40 +0000)
committerJob Snijders <job@sobornost.net>
Thu, 22 Aug 2024 16:40:42 +0000 (16:40 +0000)
docs/usage.md
man/fort.8
src/config.c

index 9c3dfb3add16fa63f6c01265ba203a4958628cef..dc1da84f13a2c4622a0174daa071ca795cd04063 100644 (file)
@@ -704,7 +704,7 @@ The value specified (either by the argument or the default value) is utilized in
 
 - **Type:** Integer
 - **Availability:** `argv` and JSON
-- **Default:** 0
+- **Default:** 900
 - **Range:** [0, [`UINT_MAX`](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html)]
 
 _**All requests are made using HTTPS, verifying the peer and the certificate name vs host**_
index 3411106c0f5fc4c82fed7af3f5cafa498edfa23e..61fc166d6923f321bdefe7b03a461aad5e5201a4 100644 (file)
@@ -813,7 +813,7 @@ unlimited time (default value).
 The value specified (either by the argument or the default value) is utilized
 in libcurl’s option \fICURLOPT_TIMEOUT\fR.
 .P
-By default, it has a value of \fI0\fR.
+By default, it has a value of \fI900\fR.
 .RE
 .P
 
index e010a9739f962ebf5d3d59ba11eb9a3c357dfa3c..cc289db9f0ad4fe50c06eb896789a8ad083305d1 100644 (file)
@@ -960,7 +960,7 @@ set_default_values(void)
        rpki_config.http.user_agent = pstrdup(PACKAGE_NAME "/" PACKAGE_VERSION);
        rpki_config.http.max_redirs = 10;
        rpki_config.http.connect_timeout = 30;
-       rpki_config.http.transfer_timeout = 0;
+       rpki_config.http.transfer_timeout = 900;
        rpki_config.http.low_speed_limit = 100000;
        rpki_config.http.low_speed_time = 10;
        rpki_config.http.max_file_size = 1000000000;