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

Increase connection timeout #1485

Merged
merged 2 commits into from
Aug 16, 2018

Conversation

rjmholt
Copy link
Contributor

@rjmholt rjmholt commented Aug 15, 2018

PR Summary

Resolves #1360.

Increases the connection timeout to 2 minutes, while making it check only once every 2 seconds.

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets.
Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
  • Summarized changes
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

src/utils.ts Outdated
// Try once per second for 60 seconds, one full minute
innerTryFunc(60, 1000);
// Try once every 2 seconds for 120 seconds, two full minutes
innerTryFunc(120, 2000);
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't this bump the max wait time to 4 mins? 2 * 120 secs. Maybe just use (120, 1000)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. I'm thinking it should be 60, 2000 maybe? Ideally this should be exponential backoff style perhaps?

Copy link
Contributor

@rkeithhill rkeithhill left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

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

LGTM

@TylerLeonhardt TylerLeonhardt merged commit a95e3ae into PowerShell:master Aug 16, 2018
@rjmholt rjmholt deleted the increase-connection-timeout branch December 12, 2018 06:05
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.

The Language Service could not be started.
3 participants