Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

endlessly retry connection to devtools websocket #1752

Merged
merged 3 commits into from Feb 10, 2021
Merged

Conversation

ags799
Copy link
Contributor

@ags799 ags799 commented Feb 3, 2021

Endlessly retry connection to preview's devtools websocket on wrangler dev. With exponential backoff.

Keeps us from panicking in #1510.

Output looks like
Screen Shot 2021-02-03 at 3 47 16 PM

@ObsidianMinor
Copy link
Contributor

We should probably add a limit to the exponential back-off so users aren't forced to wait an extremely long time if they leave their computer for a bit.

@ags799
Copy link
Contributor Author

ags799 commented Feb 9, 2021 via email

@ObsidianMinor
Copy link
Contributor

Maybe one minute or 30 seconds? It doesn't really hurt to reconnect and we don't want to force users to wait to long (though they can always just kill it and restart wrangler dev).

Andrew Sharp added 2 commits February 9, 2021 15:31
Endlessly retry connection to preview's devtools websocket on `wrangler dev`. With exponential backoff.
@ags799
Copy link
Contributor Author

ags799 commented Feb 9, 2021

Maybe one minute or 30 seconds? It doesn't really hurt to reconnect and we don't want to force users to wait to long (though they can always just kill it and restart wrangler dev).

done

@ags799 ags799 merged commit 25686ef into master Feb 10, 2021
@delete-merged-branch delete-merged-branch bot deleted the asharp/dev-panic branch February 10, 2021 17:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants