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

软件速度很快,但是经常连接被重置 #3

Closed
w22gb8 opened this issue Jan 25, 2018 · 4 comments
Closed

软件速度很快,但是经常连接被重置 #3

w22gb8 opened this issue Jan 25, 2018 · 4 comments

Comments

@w22gb8
Copy link

w22gb8 commented Jan 25, 2018

日志显示:handle_socks5_request - socks5_parse_request failed

@neevek
Copy link
Owner

neevek commented Jan 25, 2018

出现这个错误的时候,这条日志的前面一些日志是什么呢?应该还有一些其他的 Error 日志的。

@w22gb8
Copy link
Author

w22gb8 commented Jan 26, 2018

谢谢回复,以下为通过阿里香港访问github时的错误日志:
2018-01-26 08:06:46.414 [V] [/root/lightning/remote.c:319] handle_close_cb - now will free the session object: 0x873b10
2018-01-26 08:06:47.793 [I] [/root/lightning/remote.c:664] upstream_tcp_connect_domain - connected to 192.30.253.112:443
2018-01-26 08:06:48.020 [I] [/root/lightning/remote.c:803] upstream_tcp_connect_log - uv_tcp_connect: github.com:443, status: CONNECTED
2018-01-26 08:06:48.411 [I] [/root/lightning/remote.c:664] upstream_tcp_connect_domain - connected to 117.18.237.29:80
2018-01-26 08:06:48.414 [I] [/root/lightning/remote.c:803] upstream_tcp_connect_log - uv_tcp_connect: ocsp.digicert.com:80, status: CONNECTED
2018-01-26 08:06:48.992 [E] [/root/lightning/socks5.c:73] socks5_parse_request - bad version: 128
2018-01-26 08:06:48.992 [E] [/root/lightning/remote.c:469] handle_socks5_request - socks5_parse_request failed
2018-01-26 08:06:48.992 [V] [/root/lightning/remote.c:272] close_session - now will close session: 0x87c350
2018-01-26 08:06:48.992 [V] [/root/lightning/remote.c:319] handle_close_cb - now will free the session object: 0x87c350
2018-01-26 08:06:49.554 [E] [/root/lightning/socks5.c:73] socks5_parse_request - bad version: 128
2018-01-26 08:06:49.554 [E] [/root/lightning/remote.c:469] handle_socks5_request - socks5_parse_request failed
2018-01-26 08:06:49.554 [V] [/root/lightning/remote.c:272] close_session - now will close session: 0x87c350
2018-01-26 08:06:49.554 [V] [/root/lightning/remote.c:319] handle_close_cb - now will free the session object: 0x87c350
2018-01-26 08:06:49.685 [E] [/root/lightning/socks5.c:73] socks5_parse_request - bad version: 128
2018-01-26 08:06:49.685 [E] [/root/lightning/remote.c:469] handle_socks5_request - socks5_parse_request failed
2018-01-26 08:06:49.686 [V] [/root/lightning/remote.c:272] close_session - now will close session: 0x87c350
2018-01-26 08:06:49.686 [V] [/root/lightning/remote.c:319] handle_close_cb - now will free the session object: 0x87c350
2018-01-26 08:06:49.688 [I] [/root/lightning/remote.c:664] upstream_tcp_connect_domain - connected to 151.101.76.133:443
2018-01-26 08:06:49.689 [I] [/root/lightning/remote.c:803] upstream_tcp_connect_log - uv_tcp_connect: avatars3.githubusercontent.com:443, status: CONNECTED
2018-01-26 08:06:50.499 [E] [/root/lightning/socks5.c:73] socks5_parse_request - bad version: 240
2018-01-26 08:06:50.499 [E] [/root/lightning/remote.c:469] handle_socks5_request - socks5_parse_request failed
2018-01-26 08:06:50.499 [V] [/root/lightning/remote.c:272] close_session - now will close session: 0x87c350
2018-01-26 08:06:50.499 [V] [/root/lightning/remote.c:319] handle_close_cb - now will free the session object: 0x87c350
2018-01-26 08:06:52.374 [I] [/root/lightning/remote.c:664] upstream_tcp_connect_domain - connected to 216.58.203.10:443
2018-01-26 08:06:52.375 [I] [/root/lightning/remote.c:803] upstream_tcp_connect_log - uv_tcp_connect: safebrowsing.googleapis.com:443, status: CONNECTED
2018-01-26 08:06:52.376 [I] [/root/lightning/remote.c:664] upstream_tcp_connect_domain - connected to 151.101.76.133:443
2018-01-26 08:06:52.377 [I] [/root/lightning/remote.c:803] upstream_tcp_connect_log - uv_tcp_connect: assets-cdn.github.com:443, status: CONNECTED
2018-01-26 08:06:52.379 [I] [/root/lightning/remote.c:664] upstream_tcp_connect_domain - connected to 151.101.76.133:443
2018-01-26 08:06:52.381 [I] [/root/lightning/remote.c:803] upstream_tcp_connect_log - uv_tcp_connect: assets-cdn.github.com:443, status: CONNECTED
2018-01-26 08:06:52.752 [I] [/root/lightning/remote.c:664] upstream_tcp_connect_domain - connected to 151.101.76.133:443
2018-01-26 08:06:52.753 [I] [/root/lightning/remote.c:803] upstream_tcp_connect_log - uv_tcp_connect: assets-cdn.github.com:443, status: CONNECTED
2018-01-26 08:06:53.049 [I] [/root/lightning/remote.c:664] upstream_tcp_connect_domain - connected to 89.233.107.248:443
2018-01-26 08:06:53.363 [I] [/root/lightning/remote.c:803] upstream_tcp_connect_log - uv_tcp_connect: s2.bitcoinwisdom.com:443, status: CONNECTED
2018-01-26 08:06:53.697 [E] [/root/lightning/socks5.c:73] socks5_parse_request - bad version: 85
2018-01-26 08:06:53.697 [E] [/root/lightning/remote.c:469] handle_socks5_request - socks5_parse_request failed
2018-01-26 08:06:53.697 [V] [/root/lightning/remote.c:272] close_session - now will close session: 0x8829c0
2018-01-26 08:06:53.698 [V] [/root/lightning/remote.c:319] handle_close_cb - now will free the session object: 0x8829c0

@neevek
Copy link
Owner

neevek commented Jan 26, 2018

看起来像是客户端的上行流量被污染了,服务端接收到了垃圾数据。
目前客户端和服务端的通信协议是 socks5,在这个标准协议上暂时无法解决这样的问题。

@w22gb8
Copy link
Author

w22gb8 commented Jan 26, 2018

遇到这种情况能不能让客户端重新连接而不直接断开连接,用ss没遇到过连接被重置的情况。

@neevek neevek closed this as completed Apr 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants