-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
luci-app-tinyproxy: Translate to JS #7324
Conversation
So I think its fully working, except if you apply the settings then the settings only get saved, not reloaded. I tried with the ucitrack file, but somehow that does not work. Can somebody have a look? |
Take a look at what @dannil just did in squid.
|
I tried something like that already, it sort of works, but somehow not always, maybe a timing thing? |
i have to hit the save and apply button twice then it always works |
fe675a8
to
23d7424
Compare
Ah seems to work now. If somebody can test the new app that would be great |
That was a bit premature. It still sometimes does not work. Seems the |
Yeah, it's a timing issue, it doesn't work in my PR as well (I didn't see it at first since squid takes a while to startup since it checks for existing PID during startup which takes about 2 seconds sometimes), I had naively assumed that the |
Just doing |
Yeah, the reason why I used |
We can call a Ideally |
@dannil I may have found a solution: That seems to work, not exactly sure why, maybe due to a file lock from ubus? Or maybe it is just "luck" (i.e. slower). Would be great if we can make sure |
Interesting... I assume tinyproxy doesn't have a procd reload trigger as I wrote about in #7320 (comment)? So I was wrong about it being a timing issue in Squid at least; yes, the boot takes a while but it also reloads itself properly. That would be a way to solve it but would require changes in the principal package, but it's a nice solution since when there's UCI changes, irregardless of it's done via the CLI or LuCI, it's handled the same. |
I think that was premature again... sigh. |
1cbd7a1
to
ba41cee
Compare
OK test please! |
Just curious - does |
both seem to work equally. Want me to make into reload? |
Could you try using |
Yes reload works I already tested that. I can add a reload and a restart button. No problem. Will do that tomorrow though. |
luci-app-tinyproxy: Translate to JS Signed-off-by: Ramon Van Gorkom <[email protected]>
ba41cee
to
1aef93c
Compare
Those look great. |
Merged. Thanks @Ramon00 ! |
luci-app-tinyproxy: Translate to JS
Signed-off-by: Ramon Van Gorkom [email protected]