Skip to content

net/http: merge http2 Transport dials #13397

@ghost

Description

Instead of multiplexing streams, concurrent longpoll HTTP2 connections always create new connection, unless it's preceded by a complete roundtrip.

This code will reuse connection

getOnce()
for i:=0;i<10;i++{
        go blockingLongPoll()        
}

while this code doesn't (as shown by netstat)

for i:=0;i<10;i++{
        go blockingLongPoll()        
}

complete test is in this gist

go version devel +e5956bc linux/amd64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions