Skip to content

Commit

Permalink
Retry on connection timeout (#7163)
Browse files Browse the repository at this point in the history
* publish lib and retry on timeout

* update changlog file

* update changelog with PR link
  • Loading branch information
VincentBailly authored and arcanis committed Apr 8, 2019
1 parent b409261 commit 8a671f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Please add one entry in this file for each change in Yarn's behavior. Use the sa

## Master

- Retries downloading a package on `yarn install` when we get a ETIMEDOUT error.

[#7163](https://github.com/yarnpkg/yarn/pull/7163) - [**Vincent Bailly**](https://github.com/VincentBailly)

- Implements `yarn audit --level [severity]` flag to filter the audit command's output.

[#6716](https://github.com/yarnpkg/yarn/pull/6716) - [**Rogério Vicente**](https://twitter.com/rogeriopvl)
Expand Down
2 changes: 1 addition & 1 deletion src/util/request-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export default class RequestManager {
}

// TCP timeout
if (code === 'ESOCKETTIMEDOUT') {
if (code === 'ESOCKETTIMEDOUT' || code === 'ETIMEDOUT') {
return true;
}

Expand Down

0 comments on commit 8a671f1

Please sign in to comment.