-
Notifications
You must be signed in to change notification settings - Fork 180
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 auto-retry on connection failure. #1836
Conversation
Partially fixes #1825
<p> | ||
{{ "DISCONNECTED_MESSAGE" | $$ }} | ||
</p> | ||
</div> | ||
<paper-button class='dialogButton' on-tap='{{ revertProxySettings }}'>{{ "CONTINUE_BROWSING" | $$ }}</paper-button> | ||
<paper-button class='dialogButton' on-tap='{{ restartProxying }}'>{{ 'RESTART_PROXYING' | $$ }}</paper-button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe remove this from messages.json too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this back in.
Review status: 0 of 5 files reviewed at latest revision, 3 unresolved discussions, some commit checks failed. src/generic_ui/polymer/root.html, line 383 [r2] (raw file): src/generic_ui/scripts/ui.ts, line 372 [r2] (raw file): src/generic_ui/scripts/ui.ts, line 588 [r2] (raw file): Longer, optional suggestion: since .browserApi.stopUsingProxy was moved out and this function to only called after we have already terminated the connection (by calling stopGettingFromInstance) or if we received a disconnect message from the core, I think this function could be changed to "stoppedGetting". This would require one more change in root.ts's revertProxySettings, which would need to set disconnectedWhileProxying to false and update the icon (which is private right now though). I feel like this is better than having revertProxySettings call stopGettingInUiAndConfig when the "AndConfig" part is now handled by stopUsingProxy, and the "stopGettingInUi" part has already happened (i.e. getting status is already gone and icon is now an error icon). (Hope this made sense) Comments from the review on Reviewable.io |
Review status: 0 of 7 files reviewed at latest revision, 3 unresolved discussions, some commit checks pending. src/generic_ui/polymer/root.html, line 383 [r2] (raw file): src/generic_ui/scripts/ui.ts, line 372 [r2] (raw file): src/generic_ui/scripts/ui.ts, line 589 [r2] (raw file): Comments from the review on Reviewable.io |
Awesome! 👍 Review status: 0 of 7 files reviewed at latest revision, all discussions resolved, some commit checks broke. Comments from the review on Reviewable.io |
Review status: 0 of 7 files reviewed at latest revision, 3 unresolved discussions, some commit checks broke. src/generic_ui/scripts/ui.ts, line 593 [r3] (raw file): src/generic_ui/scripts/ui.ts, line 597 [r3] (raw file): src/generic_ui/scripts/ui.ts, line 617 [r3] (raw file): Comments from the review on Reviewable.io |
Review status: 0 of 8 files reviewed at latest revision, 3 unresolved discussions, all commit checks successful. src/generic_ui/scripts/ui.ts, line 593 [r3] (raw file): src/generic_ui/scripts/ui.ts, line 597 [r3] (raw file): src/generic_ui/scripts/ui.ts, line 617 [r3] (raw file): Comments from the review on Reviewable.io |
👍 Review status: 0 of 8 files reviewed at latest revision, 3 unresolved discussions, all commit checks successful. Comments from the review on Reviewable.io |
Add auto-retry on connection failure.
Partially fixes #1825
Looks like this:
@lucyhe @jpevarnek