Skip to content
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

连接VPN等操作后代理无法使用 #1422

Closed
Cat7373 opened this issue Nov 20, 2015 · 15 comments
Closed

连接VPN等操作后代理无法使用 #1422

Cat7373 opened this issue Nov 20, 2015 · 15 comments

Comments

@Cat7373
Copy link
Contributor

Cat7373 commented Nov 20, 2015

实际问题是使用网易UU加速器进行加速后,XX-Net必须重启才能用。
经过简单研究,大概是这种操作让本地监听的HTTP服务器失效了吧- -
希望能有个自动检测并重新监听的设计。

@Cat7373
Copy link
Contributor Author

Cat7373 commented Nov 20, 2015

初步研究应该是simple_http_server.py里的HTTPServer里的socket失效的问题。

@xxnet
Copy link
Contributor

xxnet commented Nov 21, 2015

用的人应该比较少吧,第一次听说,不知对翻墙有没有加速作用

simple_http_server.py里的HTTPServer里的socket失效,那么8085端口也无法访问是吧

2015-11-20 23:23 GMT+08:00 Cat73 [email protected]:

初步研究应该是simple_http_server.py里的HTTPServer里的socket失效的问题。


Reply to this email directly or view it on GitHub
#1422 (comment).

@Cat7373
Copy link
Contributor Author

Cat7373 commented Nov 21, 2015

对 后台页面同样无法打开
以及我是用UU加速网游的。。。

@xxnet
Copy link
Contributor

xxnet commented Nov 21, 2015

这种情况,在Wiki里加一条经验就好了吧,自动化检测成本有点高

在 2015年11月21日 下午3:50,Cat73 [email protected]写道:

对 后台页面同样无法打开
以及我是用UU加速网游的。。。


Reply to this email directly or view it on GitHub
#1422 (comment).

@Cat7373
Copy link
Contributor Author

Cat7373 commented Nov 21, 2015

其实Socket失效后accept会抛异常的- -
我来改改试试看- -
对Python不熟悉- -
Java里倒是常搞这类东东..

@xxnet
Copy link
Contributor

xxnet commented Nov 21, 2015

好啊,你试试,python 比java简单

在 2015年11月21日 下午7:36,Cat73 [email protected]写道:

其实Socket失效后accept会抛异常的- -
我来改改试试看- -
对Python不熟悉- -
Java里倒是常搞这类东东..


Reply to this email directly or view it on GitHub
#1422 (comment).

@Cat7373
Copy link
Contributor Author

Cat7373 commented Nov 21, 2015

Nov 21 20:25:30 - [WARNING] socket(127.0.0.1:8087) accept fail(errno: 10022).
Nov 21 20:25:30 - [INFO] server 127.0.0.1:8087 restarted.
成功实现GAE部分的重启,后台还没有。

@xxnet
Copy link
Contributor

xxnet commented Nov 21, 2015

2015-11-21 20:28 GMT+08:00 Cat73 [email protected]:

Nov 21 20:25:30 - [WARNING] socket(127.0.0.1:8087) accept fail(errno:
10022).
Nov 21 20:25:30 - [INFO] server 127.0.0.1:8087 restarted.
成功实现GAE部分的重启,后台还没有。


Reply to this email directly or view it on GitHub
#1422 (comment).

@Cat7373
Copy link
Contributor Author

Cat7373 commented Nov 21, 2015

后台好蛋疼- -
出现这种问题后打开后台 控制台直接消失。。。
在bat加了个2 > err.log
不知道能捕获到不 - -

@Cat7373
Copy link
Contributor Author

Cat7373 commented Nov 21, 2015

不能- - 我已经用文件夹搜索定位到了代码- -

@xxnet
Copy link
Contributor

xxnet commented Nov 21, 2015

先打开cmd,在里面执行看看

@Cat7373
Copy link
Contributor Author

Cat7373 commented Nov 21, 2015

照样消失0.0

@xxnet
Copy link
Contributor

xxnet commented Nov 21, 2015

隐藏cmd窗口的代码只有一个地方:
launcher/win_tray.py 105行
ctypes.windll.user32.ShowWindow(ctypes.windll.kernel32.GetConsoleWindow(),
0)

你把它注释掉看看

你点托盘图标时会调用一次

2015-11-21 21:07 GMT+08:00 Cat73 [email protected]:

照样消失0.0


Reply to this email directly or view it on GitHub
#1422 (comment).

@Cat7373
Copy link
Contributor Author

Cat7373 commented Nov 21, 2015

感冒了... 状态不大好...
所以说为什么我不支持捕获了错误就不管了...
我的代码里捕获过的错误都会再输出一次...
SocketServer.py 291行...
捕获错误后直接return...

@Cat7373 Cat7373 closed this as completed Nov 21, 2015
@xxnet
Copy link
Contributor

xxnet commented Nov 22, 2015

感冒了就先休息,喝几天水,不要太疲劳了,自然就好了

2015-11-21 22:31 GMT+08:00 Cat73 [email protected]:

Closed #1422 #1422.


Reply to this email directly or view it on GitHub
#1422 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants