mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 01:30:37 +08:00
Retry fetch on timed out
This commit is contained in:
parent
6a984161a4
commit
2695de7410
@ -28,7 +28,7 @@ setGlobalDispatcher(agent.compose(
|
||||
interceptors.retry({
|
||||
maxRetries: 5,
|
||||
minTimeout: 10000,
|
||||
errorCodes: ['UND_ERR_HEADERS_TIMEOUT', 'ECONNRESET', 'ECONNREFUSED', 'ENOTFOUND', 'ENETDOWN', 'ENETUNREACH', 'EHOSTDOWN', 'EHOSTUNREACH', 'EPIPE']
|
||||
errorCodes: ['UND_ERR_HEADERS_TIMEOUT', 'ECONNRESET', 'ECONNREFUSED', 'ENOTFOUND', 'ENETDOWN', 'ENETUNREACH', 'EHOSTDOWN', 'EHOSTUNREACH', 'EPIPE', 'ETIMEDOUT']
|
||||
}),
|
||||
interceptors.redirect({
|
||||
maxRedirections: 5
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user