KaringX / karing

Simple & Powerful proxy utility, Support routing rules for clash/sing-box
https://karing.app
2.67k stars 221 forks source link

Force close sing-box when close takes too long #117

Closed Graveyard9988 closed 2 months ago

Graveyard9988 commented 3 months ago

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

GooRingX commented 3 months ago

Please provide the reproducible process

Graveyard9988 commented 3 months ago

I'm not programmer but I'll try to find that