mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-14 05:42:54 -07:00
fix(core): reduce default API timeout to 60s and enable retries for undici timeouts (#26191)
This commit is contained in:
@@ -55,6 +55,9 @@ const RETRYABLE_NETWORK_CODES = [
|
||||
'ECONNREFUSED',
|
||||
'ERR_SSL_WRONG_VERSION_NUMBER',
|
||||
'EPROTO', // Generic protocol error (often SSL-related)
|
||||
'UND_ERR_HEADERS_TIMEOUT',
|
||||
'UND_ERR_BODY_TIMEOUT',
|
||||
'UND_ERR_CONNECT_TIMEOUT',
|
||||
];
|
||||
|
||||
// Node.js builds SSL error codes by prepending ERR_SSL_ to the uppercased
|
||||
|
||||
Reference in New Issue
Block a user