mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2024-11-10 06:54:16 +00:00
[chore] update default http client timeout to 30s (#3214)
This commit is contained in:
parent
c78c3d5ed9
commit
e1154453bb
3 changed files with 5 additions and 5 deletions
|
@ -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 ######
|
||||||
|
|
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue