Skip to content

XMUX: Change to non-infinity-reuse default values#3919

Merged
RPRX merged 1 commit intomainfrom
xmux
Oct 16, 2024
Merged

XMUX: Change to non-infinity-reuse default values#3919
RPRX merged 1 commit intomainfrom
xmux

Conversation

@RPRX
Copy link
Member

@RPRX RPRX commented Oct 16, 2024

这样可以改进默认配置下 SplitHTTP 的使用体验,看了下代码,加到配置解析这里最合适,不过 API 可能会绕过这些默认值

看了下代码,splithttpNewRandRangeConfig 的 nil 改为 0 不会有问题

@RPRX RPRX merged commit 897521d into main Oct 16, 2024
@Fangliding
Copy link
Member

xmux改成指针类型然后 if Xmux==nil不就行了)

@RPRX
Copy link
Member Author

RPRX commented Oct 16, 2024

xmux改成指针类型然后 if Xmux==nil不就行了)

据说有些面板会填 0

@RPRX
Copy link
Member Author

RPRX commented Oct 16, 2024

@Fangliding 等正式 release 后,文档改为“忽略或全填 0 时会取这些默认值”

@Fangliding
Copy link
Member

@Fangliding 等正式 release 后,文档改为“忽略或全填 0 时会取这些默认值”

都已经要求面板得用ssh tunnel进行http连接了这份上了 还迁就这些行为是否有些

@RPRX
Copy link
Member Author

RPRX commented Oct 16, 2024

都已经要求面板得用ssh tunnel进行http连接了这份上了 还迁就这些行为是否有些

可能有些客户端也会这么干,总之想要 infinity-reuse 的话 maxConnections 填 1 就行了,不用留着“全 0 即 infinity”的语义

@RPRX
Copy link
Member Author

RPRX commented Oct 17, 2024

感觉现在平均 96 个子连接就开一条新连接,频率有点高,要不要改成 192 或 384

@fodhelper
Copy link

doesn't it create a pattern/fingerprint for splithttp?

@Fangliding
Copy link
Member

The actual behavior is random within a considerable range, and we still recommend users to fill in according to their own needs, but this default value should not cause additional fingerprints

@RPRX
Copy link
Member Author

RPRX commented Oct 21, 2024

doesn't it create a pattern/fingerprint for splithttp?

这是个好问题,我还没有解释,我特地选了两个在 TLS 外不太能看出来的选项即 maxConcurrency 加 cMaxReuseTimes(而不是 maxConnections 加 cMaxLifetimeMs),并且这两个选项的默认值都是 range 取随机,最大程度上消除了潜在特征。

@fodhelper
Copy link

Lower traffic = less connections count to the same server
Higher traffic = more connections count to the same server
Connection count will change by the traffic rate
Am i wrong? how TLS gonna hide this pattern

@Fangliding
Copy link
Member

It is very normal for high traffic to have more connections.....

@RPRX
Copy link
Member Author

RPRX commented Oct 22, 2024

Lower traffic = less connections count to the same server
Higher traffic = more connections count to the same server
Connection count will change by the traffic rate
Am i wrong? how TLS gonna hide this pattern

我选择 maxConcurrency 而不是 maxConnections,就是为了防止连接数成为 fixed pattern,当然如果你喜欢后者也可以手动设置

leninalive pushed a commit to amnezia-vpn/amnezia-xray-core that referenced this pull request Oct 29, 2024
@yuhan6665 yuhan6665 deleted the xmux branch November 4, 2024 17:53
it2konst pushed a commit to it2konst/gametunnel-core that referenced this pull request Mar 1, 2026
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

Successfully merging this pull request may close these issues.

3 participants