XHTTP client: Enable XMUX for download in U-D-S #3965
Merged
+20
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
XHTTP 上下行分离 #3955 时的 XMUX 并不对称,举个例子,若上下行均未填 XMUX,即均取以下默认值时:
上下行分别在 range 内 roll 出的确定值是独立、无关的,比如可能上行 maxConcurrency=16,下行 maxConcurrency=32
这样随着时间的推移,同一子连接的上下行会更容易被分到上行的第 N 号连接、下行的第 M 号连接,反分析效果更好
若以 maxConnections 为基础,则会加速随机,因为它是先开满连接数然后 rand 取用,而 maxConcurrency 是遍历数组
所以若以固定值的 maxConcurrency + cMaxReuseTimes + cMaxLifetimeMs 为基础,可能会导致上下行的 XMUX 对称