Skip to content

x/net/http2: do not flush immediately after write headers #58674

Open
@veezhang

Description

@veezhang

The http2 client flush immediately after write headers, so there have two TCP packets separated.

https://github.com/golang/net/blob/master/http2/transport.go#L1617

When a large number of requests, this may cause a performance loss.

So should combine the header and body packets, and do not flush immediately after write headers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions