Skip to content

fix(xhttp): apply default uplink chunk size - #3061

Merged
wwqgtxx merged 2 commits into
MetaCubeX:Alphafrom
vanbujhm:fix/xhttp-uplink-chunk-default
Aug 3, 2026
Merged

fix(xhttp): apply default uplink chunk size#3061
wwqgtxx merged 2 commits into
MetaCubeX:Alphafrom
vanbujhm:fix/xhttp-uplink-chunk-default

Conversation

@vanbujhm

@vanbujhm vanbujhm commented Aug 3, 2026

Copy link
Copy Markdown

When uplink-chunk-size is omitted, GetNormalizedUplinkChunkSize passes an empty fallback to ParseRange. Parsing fails before the existing Max == 0 branch can select the placement-specific default.

Use 0 as the fallback, making an omitted value behave the same as an explicit uplink-chunk-size: 0.

Test: go test ./transport/xhttp

@wwqgtxx
wwqgtxx merged commit 69a3142 into MetaCubeX:Alpha Aug 3, 2026
ohmycggk pushed a commit to ohmycggk/mihomo that referenced this pull request Sep 3, 2026
ohmycggk pushed a commit to ohmycggk/mihomo that referenced this pull request Sep 9, 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.

2 participants