]> Cypherpunks repositories - gostls13.git/commitdiff
net/http2: update bundled http2
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 13 Jan 2016 04:51:08 +0000 (20:51 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 13 Jan 2016 04:52:24 +0000 (04:52 +0000)
Update bundled http2 to git rev 76365a4 for https://golang.org/issue/18571

Fixes golang/go#13924

Change-Id: Ibb48cd6935b35d9965df70fb8761be5986d79ffc
Reviewed-on: https://go-review.googlesource.com/18591
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/h2_bundle.go

index 4be56f50c51c463158c59f66d0d85faf59ec6201..5f088575646c93222ced6bf0f543dec7c2629a8c 100644 (file)
@@ -5038,7 +5038,7 @@ func (cc *http2ClientConn) streamByID(id uint32, andRemove bool) *http2clientStr
        cc.mu.Lock()
        defer cc.mu.Unlock()
        cs := cc.streams[id]
-       if andRemove && cs != nil {
+       if andRemove && cs != nil && !cc.closed {
                delete(cc.streams, id)
                close(cs.done)
        }