-
Notifications
You must be signed in to change notification settings - Fork 778
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
🐛 BUG: wrangler dev still sometimes fails to exit cleanly after Ctl-C #958
Labels
bug
Something that isn't working
Comments
cc @d3lm |
Oh no, how often does it still happen? |
I think it only happens if you have made a request to the Worker and there is a connection being held open somewhere. |
petebacondarwin
added a commit
to petebacondarwin/wrangler2
that referenced
this issue
May 23, 2022
…` from hanging When running `wrangler dev` we create a proxy to the actual remote Worker. After creating a connection to this proxy by a browser request the proxy did not shutdown. Now we use a `HttpTerminator` helper library to force the proxy to close open connections and shutdown correctly. Fixes cloudflare#958
petebacondarwin
added a commit
that referenced
this issue
May 23, 2022
…` from hanging (#1088) * refactor: add abort signal support to creating worker previews * refactor: add typings for `AbortSignal#abort` event * fix: ensure that the proxy server shuts down to prevent `wrangler dev` from hanging When running `wrangler dev` we create a proxy to the actual remote Worker. After creating a connection to this proxy by a browser request the proxy did not shutdown. Now we use a `HttpTerminator` helper library to force the proxy to close open connections and shutdown correctly. Fixes #958
Repository owner
moved this from In Review
to Done
in workers-sdk
May 23, 2022
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of
Wrangler
are you using?2.0.2
What operating system are you using?
Mac
Describe the Bug
Occasionally, hitting Ctrl-C when running
wrangler dev
does not result in the process exiting. Instead it just hangs.Previously we had this problem but thought we had fixed it with #732. But it seems to have reappeared.
The text was updated successfully, but these errors were encountered: