Skip to content

Commit 8a671f1

Browse files
VincentBaillyarcanis
authored andcommitted
Retry on connection timeout (#7163)
* publish lib and retry on timeout * update changlog file * update changelog with PR link
1 parent b409261 commit 8a671f1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Please add one entry in this file for each change in Yarn's behavior. Use the sa
44

55
## Master
66

7+
- Retries downloading a package on `yarn install` when we get a ETIMEDOUT error.
8+
9+
[#7163](https://github.com/yarnpkg/yarn/pull/7163) - [**Vincent Bailly**](https://github.com/VincentBailly)
10+
711
- Implements `yarn audit --level [severity]` flag to filter the audit command's output.
812

913
[#6716](https://github.com/yarnpkg/yarn/pull/6716) - [**Rogério Vicente**](https://twitter.com/rogeriopvl)

src/util/request-manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ export default class RequestManager {
301301
}
302302

303303
// TCP timeout
304-
if (code === 'ESOCKETTIMEDOUT') {
304+
if (code === 'ESOCKETTIMEDOUT' || code === 'ETIMEDOUT') {
305305
return true;
306306
}
307307

0 commit comments

Comments
 (0)