Xray-core
Xray-core copied to clipboard
Add browser dialer for splithttp
this is a bit buggy, the download is interrupted 50% of the time
Thanks! I will take a look later. Main has been updated to use new logger:
- errors.LogInfo(ctx, msg...)
- errors.LogInfoInner(ctx, err, msg...)
there is still some kind of promise leak in the dialer page. after directing my main browser (firefox) with a few 100 tabs through this browser dialer and waiting for 10 minutes, the dialer tab (chrome) becomes unresponsive, right click on that page stops working (??) and the tab needs to be killed
setup is like this:
firefox -> xray client -> chrome dialer -> cloudflare splithttp config -> freedom
I couldn't reproduce this issue with iperf yet. Refreshing the dialer page (before it freezes) fixes everything, ~~maybe it should just refresh itself periodically~~
Although I don't know much about the browser dialer, I looked over the commits, I think it is good and we can merge and keep improving in main.
Last time I checked it, opening and closing GET repeatedly causes the dialer to freeze after 15 minutes to 1 hour. Mux can probably work around this. If somebody can reproduce what I am seeing, it would be good.
And it's also ok to merge it into main, since the refactor is quite big, up to you.
After thinking about it, I now agree that it is probably best to improve this further in main.
I have confirmed that enabling mux works around the dialer bugs well enough and makes it usable. I will (try to) improve this situation in the future if somebody cares about it.
Please review.
I will merge later if no other comments..
主要是怕把原有的 WSS Browser Dialer 改炸,不过这功能用起来麻烦些所以用的人不多,毕竟目前 GFW 没封 uTLS,uTLS 更方便
所以虽然我没深入看代码,但我觉得可以先合了,~~然后等喜欢折腾的用户当小白鼠~~