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

20191104版本无法兼容旧版本(smuxver=1) #736

Closed
shell12345 opened this issue Nov 7, 2019 · 17 comments
Closed

20191104版本无法兼容旧版本(smuxver=1) #736

shell12345 opened this issue Nov 7, 2019 · 17 comments

Comments

@shell12345
Copy link

服务端升级20191104后,服务器端设置为smuxver=1
客服端低版本 20190924 显示,
smux invalid version error
客服端同为smuxver=1
客服端更新20191104后错误消除,连接正常。
其实电脑端可以同时更新版本,但是手机端依赖
https://github.com/shadowsocks/kcptun-android/releases
新版本20191104能不能兼容旧版本?主要是兼容Android kcptun 插件。

@xtaci
Copy link
Owner

xtaci commented Nov 7, 2019

默认smuxver=1,兼容的, 如果出现错误,可能是其它原因引起的,比如parity datashard设置的不一致。

@maxwellzh
Copy link

maxwellzh commented Nov 7, 2019

我遇到了同样的问题,感觉是安卓ss插件的问题,其他平台是兼容的。

暂时的解决方法是:
server开两个版本的kcptun,一个0924专门给安卓端用,另一个同步最新kcptun的release给其他平台。
kcptun-android项目好像挺久没更新了,只能暂时这样

@xtaci
Copy link
Owner

xtaci commented Nov 7, 2019

非官方编译版本就不太清楚了

@cool168
Copy link

cool168 commented Nov 9, 2019

遇到同样的问题,官方版本兼容,android的插件不兼容。

@xtaci
Copy link
Owner

xtaci commented Nov 9, 2019

https://github.com/shadowsocks/kcptun-android/issues
可以和作者一起讨论下

@cdb0y511
Copy link

cdb0y511 commented Nov 9, 2019

@xtaci I have posted the issue.
I really hope you can solve it. I think a lot of Android users heavily depend on it.
thanks.

@xtaci
Copy link
Owner

xtaci commented Nov 9, 2019

  github.com/xtaci/smux v1.4.4
  github.com/xtaci/smux/v2 v2.0.11

smux
v1 依赖 v1.4.4
v2 依赖 v2.0.11

比较奇怪为什么不兼容

@xtaci
Copy link
Owner

xtaci commented Nov 9, 2019

@xtaci I have posted the issue.
I really hope you can solve it. I think a lot of Android users heavily depend on it.
thanks.

good

@maxwellzh
Copy link

maxwellzh commented Nov 9, 2019

  github.com/xtaci/smux v1.4.4
  github.com/xtaci/smux/v2 v2.0.11

smux
v1 依赖 v1.4.4
v2 依赖 v2.0.11

比较奇怪为什么不兼容

0924的兼容,1107不兼容,和#737 问题一样,应该是中间的commit改变了什么

@xtaci
Copy link
Owner

xtaci commented Nov 9, 2019

0924之后,smux没有任何commit, 0924之后kcp-go也没有做过任何协议层面的修改。

@xtaci
Copy link
Owner

xtaci commented Nov 9, 2019

我曾经出现过smux invalid version error的唯一原因是:
FEC参数两头不一致导致的。调整为一致后消失。

@lzfmars
Copy link

lzfmars commented Nov 9, 2019

同样的问题,先升了服务器端的kcptun 1107,客户端(0924)就不通了,然后把客户端也升级为1107才可以上网

@xtaci
Copy link
Owner

xtaci commented Nov 9, 2019

如果是android我不清楚怎么回事, 如果是之前0924和1107不通, 检查启动时候输出的smux version是否一致。

@xtaci
Copy link
Owner

xtaci commented Nov 9, 2019

https://github.com/xtaci/kcptun/releases/tag/v20191109
清理了下环境,重编译了下提交,暂时想不到为什么

@maxwellzh
Copy link

maxwellzh commented Nov 9, 2019

实测server0924Ubuntu---client1109macOS可用,1109server和android兼容了,并且#737 中的速度不同现象也已经消失

@xtaci
Copy link
Owner

xtaci commented Nov 10, 2019

那可能是编译的时候没有注意去设置GO111MODULE=on, 恰好我本地处于smux v2分支。。。所以导致的这个问题。
针对这个问题,build-releash.sh会强行设置GO111MODULE=on了。

@xtaci xtaci closed this as completed Nov 10, 2019
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

7 participants
@xtaci @cool168 @lzfmars @cdb0y511 @maxwellzh @shell12345 and others