{"action":"opened","issue":{"url":"https://api.github.com/repos/golang/go/issues/13397","labels_url":"https://api.github.com/repos/golang/go/issues/13397/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/13397/comments","events_url":"https://api.github.com/repos/golang/go/issues/13397/events","html_url":"https://github.com/golang/go/issues/13397","id":118835311,"number":13397,"title":"net/http: HTTP2 longpoll doesn't multiplex","user":{"login":"uwillis","id":15698244,"avatar_url":"https://avatars.githubusercontent.com/u/15698244?v=3","gravatar_id":"","url":"https://api.github.com/users/uwillis","html_url":"https://github.com/uwillis","followers_url":"https://api.github.com/users/uwillis/followers","following_url":"https://api.github.com/users/uwillis/following{/other_user}","gists_url":"https://api.github.com/users/uwillis/gists{/gist_id}","starred_url":"https://api.github.com/users/uwillis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwillis/subscriptions","organizations_url":"https://api.github.com/users/uwillis/orgs","repos_url":"https://api.github.com/users/uwillis/repos","events_url":"https://api.github.com/users/uwillis/events{/privacy}","received_events_url":"https://api.github.com/users/uwillis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-25T13:21:01Z","updated_at":"2015-11-25T13:21:01Z","closed_at":null,"body":"Instead of multiplexing streams, concurrent longpoll HTTP2 connections always create new connection, unless it's preceded by a complete roundtrip.\r\n\r\nThis code will reuse connection\r\n```\r\ngetOnce()\r\nfor i:=0;i<10;i++{\r\n        go blockingLongPoll()        \r\n}\r\n```\r\nwhile this code doesn't (as shown by netstat)\r\n```\r\nfor i:=0;i<10;i++{\r\n        go blockingLongPoll()        \r\n}\r\n```\r\ncomplete test is in [this gist](https://gist.github.com/uwillis/1890d92c16c6336aed32)\r\n\r\n`go version devel +e5956bc linux/amd64`\r\n\r\n"}}