XX-net / XX-Net

A proxy tool to bypass GFW.
33.04k stars 7.69k forks source link

使用 autohotkey 设置快捷键 重启 xx-net #8105

Open go2chenhua opened 6 years ago

go2chenhua commented 6 years ago

下载 youtube 视频的时候, 久了下载经常没反应, 需要重启 xxnet 才可以继续下载. 故如题 image 然后 ahk 写个命令: image

目前不知道有没有其他简便的方法.

onplus commented 6 years ago

3.7.7

https://github.com/XX-net/XX-Net/blob/3a47d21dfd098fe51f587e20f67b617443e7e66d/code/default/launcher/win_tray.py#L96-L105

xxnet commented 6 years ago

​GAE 还有bug? 久了没有反应? 可以把没有反应时的状态页、日志发出来看看,找到问题。

也可以直接发起http 请求, 8085端口,关闭GAE,开启GAE模块。 系统模块管理里的功能。

go2chenhua commented 6 years ago

XX-Net Status:

sys-platform: AMD64, Windows-7-6.1.7601-SP1 os-system: Windows os-version: 6.1.7601 os-release: 7 os-detail: Version:6-1; Build:7601; Platform:2; CSD:Service Pack 1; ServicePack:1-0; Suite:256; ProductType:0 architecture: 32bit,WindowsPE browser: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0 xxnet-version: 3.7.12 python-version: 2.7.13 openssl-version: 16.0.0 TLSv1_2 h2:alpn ipv6-tunnel: Developing use-ipv6: auto gws-ip-num: total:600 ipv4:0 ipv6:575 ipv4-status: OK ipv6-status: OK connected-link: new:0 used:0 worker: h1:62 h2:0 scan-ip-thread-num: 10 ip-quality: 233 is-idle: 0 block-stat: OK proxy_state: Fail ca_state: Fail Appid_Working: true Appids_Out_Of_Quota: false Appids_Not_Exist: false Using_Public_Appid: false

Nov 08 18:30:51.217 - [INFO] scan_ip add ip:2607:f8b0:4009:34::7 time:1092 Nov 08 18:30:51.411 - [DEBUG] create_ssl update ip:2607:f8b0:4017:21::7 time:611 h2:0 Nov 08 18:30:54.569 - [DEBUG] create_ssl update ip:2607:f8b0:4017::7 time:671 h2:0 Nov 08 18:30:55.788 - [DEBUG] create_ssl update ip:2607:f8b0:400f::17 time:381 h2:0 Nov 08 18:30:56.573 - [DEBUG] create_ssl update ip:2607:f8b0:401c:16::a time:342 h2:0 Nov 08 18:30:58.812 - [DEBUG] 2607:f8b0:401c:2::c worker close:idle timeout Nov 08 18:30:59.493 - [DEBUG] 2607:f8b0:4017:2d::b worker close:idle timeout Nov 08 18:31:02.093 - [DEBUG] create_ssl update ip:2607:f8b0:401c:2::c time:345 h2:0 Nov 08 18:31:03.492 - [DEBUG] create_ssl update ip:2607:f8b0:4017:22::15 time:669 h2:0 Nov 08 18:31:04.974 - [DEBUG] 2607:f8b0:4012:c::16 worker close:idle timeout Nov 08 18:31:05.877 - [DEBUG] 2607:f8b0:401e:3::12 worker close:idle timeout Nov 08 18:31:08.927 - [INFO] scan_ip add ip:2607:f8b0:4017:2f::10 time:664 Nov 08 18:31:09.281 - [DEBUG] create_ssl update ip:2607:f8b0:401c:c::8 time:345 h2:0 Nov 08 18:31:10.667 - [DEBUG] create_ssl update ip:2607:f8b0:4017::19 time:641 h2:0 Nov 08 18:31:11.887 - [DEBUG] 2607:f8b0:401e:b::d worker close:idle timeout Nov 08 18:31:12.883 - [DEBUG] 2607:f8b0:401e:d::c worker close:idle timeout Nov 08 18:31:13.896 - [INFO] scan_ip add ip:2607:f8b0:4012:5::19 time:759 Nov 08 18:31:17.049 - [DEBUG] create_ssl update ip:2607:f8b0:4017:10::10 time:648 h2:0 Nov 08 18:31:17.813 - [DEBUG] 2607:f8b0:4017:1b::d worker close:idle timeout Nov 08 18:31:17.837 - [DEBUG] create_ssl update ip:2607:f8b0:401c:1a::17 time:345 h2:0 Nov 08 18:31:18.823 - [DEBUG] 2607:f8b0:4009:33::b worker close:idle timeout Nov 08 18:31:23.755 - [DEBUG] create_ssl update ip:2607:f8b0:4017:1b::d time:612 h2:0 Nov 08 18:31:24.696 - [DEBUG] create_ssl update ip:2607:f8b0:4009:33::b time:634 h2:0 Nov 08 18:31:24.853 - [DEBUG] 2607:f8b0:4017:20::10 worker close:idle timeout Nov 08 18:31:25.847 - [DEBUG] 2607:f8b0:4017:2e::16 worker close:idle timeout Nov 08 18:31:30.647 - [DEBUG] create_ssl update ip:2607:f8b0:4017:2e::16 time:638 h2:0 Nov 08 18:31:30.803 - [DEBUG] 2607:f8b0:401d:b::c worker close:idle timeout Nov 08 18:31:31.617 - [DEBUG] create_ssl update ip:2607:f8b0:4017:20::10 time:646 h2:0

image

重启后才可以上传图片, 去youtube下载一个比较长的视频, 又出现以下情况了, 可能是我网速低吧, 问题不大, 快捷键重启一下就好了. 用鼠标去点有点麻烦, 还是只修改一行算了.

image

go2chenhua commented 6 years ago

重启之后, 速度会变得很快, 有时候达到5, 6mb/s

xxnet commented 6 years ago

​似乎是8087监听端口失效了。 你关注下有没有一条日志:

socket accept fail
go2chenhua commented 6 years ago

没有. 有这些: Nov 08 19:48:58.161 - [DEBUG] 2404:6800:400b:14::b fail:error(' certficate is none',) Nov 08 19:48:58.161 - [DEBUG] report_connect_fail network fail

go2chenhua commented 6 years ago

重启后还会出现下面的错误, 不过可以下载, 应该跟下面的没关吧,

Nov 08 20:01:01.350 - [DEBUG] 2607:f8b0:401a:13::12 fail:timeout('timed out',)

Nov 08 20:01:01.350 - [DEBUG] report_connect_fail network fail 目前只是下载大的youtube视频时才会出现这个问题.

On Wed, Nov 8, 2017 at 7:43 PM, Michael.X notifications@github.com wrote:

​似乎是8087监听端口失效了。 你关注下有没有一条日志:

socket accept fail

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/XX-net/XX-Net/issues/8105#issuecomment-342793227, or mute the thread https://github.com/notifications/unsubscribe-auth/AD8RYA27UB9fomGAv3wBfvMOGbWvaqMAks5s0ZPIgaJpZM4QVSLb .

xxnet commented 6 years ago

​暂时怀疑连接数太多,超出某个值。

你可以用netstat -na 看看连接数多不多

go2chenhua commented 6 years ago

出问题的时候, 8087连接数以下: 63 lines

TCP 127.0.0.1:8087 0.0.0.0:0 LISTENING TCP 127.0.0.1:8087 127.0.0.1:11868 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:11879 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:11880 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:11912 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:11942 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:11962 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:11965 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:11967 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:11969 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:11970 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:11971 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:11972 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:11973 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:12027 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:12043 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:12045 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:12046 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:12047 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:12048 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:12050 TIME_WAIT TCP 127.0.0.1:8087 127.0.0.1:12058 CLOSE_WAIT TCP 127.0.0.1:8087 127.0.0.1:12062 CLOSE_WAIT TCP 127.0.0.1:8087 127.0.0.1:12069 ESTABLISHED TCP 127.0.0.1:8087 127.0.0.1:12103 CLOSE_WAIT TCP 127.0.0.1:8087 127.0.0.1:12139 CLOSE_WAIT TCP 127.0.0.1:8087 127.0.0.1:12164 CLOSE_WAIT TCP 127.0.0.1:8087 127.0.0.1:12182 CLOSE_WAIT TCP 127.0.0.1:8087 127.0.0.1:12189 ESTABLISHED TCP 127.0.0.1:8087 127.0.0.1:12205 ESTABLISHED TCP 127.0.0.1:8087 127.0.0.1:12220 ESTABLISHED TCP 127.0.0.1:8087 127.0.0.1:12221 CLOSE_WAIT TCP 127.0.0.1:8087 127.0.0.1:12222 CLOSE_WAIT TCP 127.0.0.1:8087 127.0.0.1:12223 CLOSE_WAIT TCP 127.0.0.1:8087 127.0.0.1:12224 CLOSE_WAIT TCP 127.0.0.1:8087 127.0.0.1:12229 ESTABLISHED TCP 127.0.0.1:8087 127.0.0.1:12235 ESTABLISHED TCP 127.0.0.1:8087 127.0.0.1:12241 ESTABLISHED TCP 127.0.0.1:8087 127.0.0.1:12257 ESTABLISHED TCP 127.0.0.1:8087 127.0.0.1:12273 ESTABLISHED TCP 127.0.0.1:8087 127.0.0.1:12274 ESTABLISHED TCP 127.0.0.1:11657 127.0.0.1:8087 TIME_WAIT TCP 127.0.0.1:12058 127.0.0.1:8087 FIN_WAIT_2 TCP 127.0.0.1:12062 127.0.0.1:8087 FIN_WAIT_2 TCP 127.0.0.1:12069 127.0.0.1:8087 ESTABLISHED TCP 127.0.0.1:12103 127.0.0.1:8087 FIN_WAIT_2 TCP 127.0.0.1:12139 127.0.0.1:8087 FIN_WAIT_2 TCP 127.0.0.1:12164 127.0.0.1:8087 FIN_WAIT_2 TCP 127.0.0.1:12182 127.0.0.1:8087 FIN_WAIT_2 TCP 127.0.0.1:12189 127.0.0.1:8087 ESTABLISHED TCP 127.0.0.1:12205 127.0.0.1:8087 ESTABLISHED TCP 127.0.0.1:12220 127.0.0.1:8087 ESTABLISHED TCP 127.0.0.1:12221 127.0.0.1:8087 FIN_WAIT_2 TCP 127.0.0.1:12222 127.0.0.1:8087 FIN_WAIT_2 TCP 127.0.0.1:12223 127.0.0.1:8087 FIN_WAIT_2 TCP 127.0.0.1:12224 127.0.0.1:8087 FIN_WAIT_2 TCP 127.0.0.1:12229 127.0.0.1:8087 ESTABLISHED TCP 127.0.0.1:12235 127.0.0.1:8087 ESTABLISHED TCP 127.0.0.1:12241 127.0.0.1:8087 ESTABLISHED TCP 127.0.0.1:12257 127.0.0.1:8087 ESTABLISHED TCP 127.0.0.1:12273 127.0.0.1:8087 ESTABLISHED TCP 127.0.0.1:12274 127.0.0.1:8087 ESTABLISHED

On Wed, Nov 8, 2017 at 8:05 PM, Michael.X notifications@github.com wrote:

​暂时怀疑连接数太多,超出某个值。

你可以用netstat -na 看看连接数多不多

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/XX-net/XX-Net/issues/8105#issuecomment-342798179, or mute the thread https://github.com/notifications/unsubscribe-auth/AD8RYI7VQ_EkYNM7NBH9rGVm-RgTarYeks5s0ZklgaJpZM4QVSLb .

SeaHOH commented 6 years ago

没关闭已结束连接。

SeaHOH commented 6 years ago

咋个全是本地地址?

go2chenhua commented 6 years ago

@SeaHOH 截取的, 好像其他的没关系吧, 正常下只有 13个 现在.

xxnet commented 6 years ago

​有可能是这个原因,浏览器对同一个目标地址的连接数是有限制的。 如果请求发送方认为已经发送完毕,而接收方认为还没有接收完,就会一直等,一直占着连接,直到超出限制,无法再连。

firefox 不要关,你用另外的浏览器试试连接 8087 代理

go2chenhua commented 6 years ago

打开chrome http://127.0.0.1:8085/ 显示的跟firefox一样 浏览器代理 和 证书 fail. 很久以前也是这样, 重启一下就可以了, 只不过用快捷键重启快点. 不用idm下载应该很少出现这种问题吧.