mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Retry fetch on timed out
This commit is contained in:
@@ -28,7 +28,7 @@ setGlobalDispatcher(agent.compose(
|
|||||||
interceptors.retry({
|
interceptors.retry({
|
||||||
maxRetries: 5,
|
maxRetries: 5,
|
||||||
minTimeout: 10000,
|
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({
|
interceptors.redirect({
|
||||||
maxRedirections: 5
|
maxRedirections: 5
|
||||||
|
|||||||
Reference in New Issue
Block a user