From 26a12fb24730a0b6531224932c7d97d99987f787 Mon Sep 17 00:00:00 2001 From: Job Snijders Date: Thu, 22 Aug 2024 16:40:42 +0000 Subject: [PATCH] Set default HTTP transfer timeout to 900 --- docs/usage.md | 2 +- man/fort.8 | 2 +- src/config.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/usage.md b/docs/usage.md index 9c3dfb3a..dc1da84f 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -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**_ diff --git a/man/fort.8 b/man/fort.8 index 3411106c..61fc166d 100644 --- a/man/fort.8 +++ b/man/fort.8 @@ -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 diff --git a/src/config.c b/src/config.c index e010a973..cc289db9 100644 --- a/src/config.c +++ b/src/config.c @@ -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; -- 2.47.2