Skip to content

Raise the XDrive Google Drive inline payload limit to 18 KiB - #7548

Open
svlavr wants to merge 1 commit into
XTLS:mainfrom
svlavr:codex/xdrive-main-inline-18kib
Open

svlavr wants to merge 1 commit into
XTLS:mainfrom
svlavr:codex/xdrive-main-inline-18kib

Conversation

@svlavr

@svlavr svlavr commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Raise the full-inline payload limit for Google Drive from 14 KiB to 18 KiB. With the current 25-byte frame header, an 18 KiB payload uses 24,612 Base64 characters. The measured ceiling was 25,000 characters, or 18,725 payload bytes. The new limit leaves 293 bytes of headroom. Related discussion in #7208

Validation

  • The XDrive and configuration package tests passed.
  • In direct Google Drive API tests, 18 KiB and 18,725 bytes each passed four byte-exact round trips. Drive returned HTTP 400 for 18,726 bytes in all four attempts.
  • On two matching Xray peers, the 18 KiB and 18,725-byte builds each completed 88 byte-exact round trips, including writes above the configured limit. The runs lasted 6m 58s and 6m 14s, respectively.
  • Chrome verified all 40 page resources and both parallel 16 MiB downloads through the 18 KiB build.

@RPRX

RPRX commented Dec 2, 2026

Copy link
Copy Markdown
Member

这里还没同步代码,不要直接对着这里开 PR

@RPRX RPRX closed this Dec 2, 2026
@RPRX

RPRX commented Dec 2, 2026

Copy link
Copy Markdown
Member

不过你既然已经开了,倒是可以把要作为历史记录的优化后的版本完整 PR 过来,记得 tests 全删,讨论只在 #7208 中进行

@RPRX RPRX reopened this Dec 2, 2026
@RPRX

RPRX commented Dec 2, 2026

Copy link
Copy Markdown
Member

需要 Base anonymously-hidden/Xray-core@eb2e1bf 进行优化,然后完整 PR 过来

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