Sitelet https://github.com/yarnpkg/yarn/pull/7163
Skip to content

Retry on connection timeout - #7163

Merged
arcanis merged 4 commits into
yarnpkg:masterfrom
VincentBailly:retryOnTimeout
Apr 8, 2019
Merged

arcanis merged 4 commits into
yarnpkg:masterfrom
VincentBailly:retryOnTimeout

Conversation

@VincentBailly

Copy link
Copy Markdown
Contributor

Summary

yarn install randomly fails with a ETIMEDOUT error even though we have not reached the user defined timeout. In some cases, ETIMEDOUT error is not due to user defined timeout but to network instabilities, in such cases we should retry connecting (as we already do for ESOCKETTIMEDOUT errors)

Test plan

We tested this fork in production for a few days, no new issues or perf regression was observed, and the issue was fixed.

@VincentBailly

VincentBailly commented Apr 1, 2019 •

Copy link
Copy Markdown
Contributor Author

See issue #7162

@arcanis
arcanis merged commit 8a671f1 into yarnpkg:master Apr 8, 2019
@arcanis

arcanis commented Apr 8, 2019

Copy link
Copy Markdown
Member

LGTM, thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants