Skip to content

different approach to achieve early data in httpupgrade between v2ray and xray #3677

@rhjdvsgsgks

Description

@rhjdvsgsgks

hi

i found v2ray achieve early data by store base64 encoded vmess data in earlyDataHeaderName header when GET /path at begining. xray dont use header, but directly start sending vmess data just after GET /path, without waiting for server response switching protocol.

which caused v2ray client with httpupgrade early data enabled unable to connect to xray server. since xray server unable to parse early data from header.

is there any disscussion about which method is better? i compared them on a simulated 500ms delay. v2ray finished with 5s. while xray finished with 5.3s. almost identical. but xray send 1 more packet (before switching protocol)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions