Skip to content

增加上下行分流 #1794

@sduoduo233

Description

@sduoduo233

客户端主动建立两个http1.1连接,一个用来上传,另一个用来下载。每一个连接有一个id,通过path区分上传和下载,服务器再把两个连接整合到一起。
就像这样:
i
这样可以避免tls in tls的问题,并且客户端如果有多可ip的话,上传请求和下载请求可以从不同ip发出。这个想法很早就有人提出了,我最近实现了一下(https://github.com/sduoduo233/commonweb),发现下载流量是可以过Cloudflare的。

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