-
Notifications
You must be signed in to change notification settings - Fork 266
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
fix(headless-client): clean up and exit gracefully when on_disconnect
called
#4785
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Terraform Cloud Plan Output
|
Performance Test ResultsTCP
UDP
|
Whilst this may fix the DNS control thing, I think the PR title + description (which will be the commit message when merged) should talk about graceful clean-up or something similar. Why this fixes DNS control settings is actually pretty incidential due to the way how we do this at the moment (on drop) which IMO is worth calling out. |
on_disconnect
calledon_disconnect
called
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.
Thanks!
I think we may also be able to get rid of the reference to the error? That API is very old and I think we now always have ownership over the error that we pass here.
Calling
std::process::exit
won't let the DNS deactivation code runs. For some control methods (systemd-resolved) this doesn't matter. For etc-resolvconf and Windows, we are responsible for cleaning up DNS.Tasks
Closes #4784