Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for connectionPollInterval and maxConnectionRetries #19

Merged
merged 1 commit into from
Sep 8, 2017
Merged

add support for connectionPollInterval and maxConnectionRetries #19

merged 1 commit into from
Sep 8, 2017

Conversation

alekseykulikov
Copy link
Contributor

This PR is a copy of GoogleChrome/lighthouse#3129 and addresses #12

Also this may fix GoogleChrome/lighthouse#2616, because the main goal is to avoid ECONNREFUSED. In my experiments, this issue was related with not enough time in 100% cases, just increase from 5s to 25s fixed ECONNREFUSED.

@@ -270,7 +275,7 @@ export class Launcher {
resolve();
})
.catch(err => {
if (retries > 10) {
if (retries > launcher.maxConnectionRetries) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi and thanks for the PR. I think this is a great addition!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Sam, thanks!

Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. I'll do a followup commit to extend the 5s to 25s.
A later commit will change this polling entirely, but we can get these shipped first.

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.

3 participants