Browse Source

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

pull/3218/head
kim 2 years ago committed by GitHub
parent
commit
e1154453bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      example/config.yaml
  2. 2
      internal/config/defaults.go
  3. 2
      test/envparsing.sh

6
example/config.yaml

@ -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 ######

2
internal/config/defaults.go

@ -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,
},

2
test/envparsing.sh

@ -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,

Loading…
Cancel
Save