[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
# is exceeded, the connection to the remote server will be dropped.
# A value of 0s indicates no timeout: this is not advised!
# Examples: ["5s", "10s", "0s"]
# Default: "10s"
timeout: "10s"
# Examples: ["5s", "30s", "0s"]
# Default: "30s"
timeout: "30s"
########################################
#### RESERVED IP RANGE EXCEPTIONS ######

View file

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

View file

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