mirror of
1
Fork 0

[chore] update default http client timeout to 30s (#3214)

This commit is contained in:
kim 2024-08-19 12:56:43 +00:00 committed by GitHub
parent c78c3d5ed9
commit e1154453bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -933,9 +933,9 @@ http-client:
# Duration. Timeout to use for outgoing HTTP requests. If the timeout # Duration. Timeout to use for outgoing HTTP requests. If the timeout
# is exceeded, the connection to the remote server will be dropped. # is exceeded, the connection to the remote server will be dropped.
# A value of 0s indicates no timeout: this is not advised! # A value of 0s indicates no timeout: this is not advised!
# Examples: ["5s", "10s", "0s"] # Examples: ["5s", "30s", "0s"]
# Default: "10s" # Default: "30s"
timeout: "10s" timeout: "30s"
######################################## ########################################
#### RESERVED IP RANGE EXCEPTIONS ###### #### RESERVED IP RANGE EXCEPTIONS ######

View File

@ -213,7 +213,7 @@ var Defaults = Configuration{
HTTPClient: HTTPClientConfiguration{ HTTPClient: HTTPClientConfiguration{
AllowIPs: make([]string, 0), AllowIPs: make([]string, 0),
BlockIPs: make([]string, 0), BlockIPs: make([]string, 0),
Timeout: 10 * time.Second, Timeout: 30 * time.Second,
TLSInsecureSkipVerify: false, TLSInsecureSkipVerify: false,
}, },

View File

@ -96,7 +96,7 @@ EXPECT=$(cat << "EOF"
"http-client": { "http-client": {
"allow-ips": [], "allow-ips": [],
"block-ips": [], "block-ips": [],
"timeout": 10000000000, "timeout": 30000000000,
"tls-insecure-skip-verify": false "tls-insecure-skip-verify": false
}, },
"instance-deliver-to-shared-inboxes": false, "instance-deliver-to-shared-inboxes": false,