hiddify-next
hiddify-next copied to clipboard
Force close sing-box when close takes too long
Search first
- [X] I searched and no similar issues were found
What Happened?
In scenarios where sing-box takes a long time to exit, client may not be able to start any other profile since there are resources ( like clash port, wireguard interfaces? ) which are being held by the previous sing-box instance. By killing the core instance resources are freed and the app can be used as expected. To see the difference, create a wireguard outbound and chain it to itself. once the stop button is pressed, client cannot connect to any other profile for some time. with the changes made in this PR client can function normally once the StopTimeout has finished. This solves
Here's source codes and solutions: https://github.com/xchacha20-poly1305/husi/pull/127
Minimal Reproducible Example (MRE)
.
Expected Behavior
No response
Version
1.3.6
Platform/OS
Android
Additional Context
No response
Application Config Options
No response
Relevant log output
No response
Are you willing to submit a PR? If you know how to fix the bug.
- [ ] I'm willing to submit a PR (Thank you!)
try v2.3.1 and check if problem has been solved or not