diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-09-16 16:09:35 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-09-16 16:48:19 -0700 |
commit | 54866f7a81a2af4a6097146a1c78bd09bb437883 (patch) | |
tree | 4de6eb05a5d33a651cc25dc13296f8e4b9876cba /libgo/go/net | |
parent | 745781d24cd7562202687cfbe05597ee673d4537 (diff) | |
download | gcc-54866f7a81a2af4a6097146a1c78bd09bb437883.zip gcc-54866f7a81a2af4a6097146a1c78bd09bb437883.tar.gz gcc-54866f7a81a2af4a6097146a1c78bd09bb437883.tar.bz2 |
libgo: update to go1.17.1 release
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/350414
Diffstat (limited to 'libgo/go/net')
-rw-r--r-- | libgo/go/net/http/h2_bundle.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libgo/go/net/http/h2_bundle.go b/libgo/go/net/http/h2_bundle.go index 0e5fbf8..8958a9e 100644 --- a/libgo/go/net/http/h2_bundle.go +++ b/libgo/go/net/http/h2_bundle.go @@ -4519,6 +4519,15 @@ func (sc *http2serverConn) serve() { case res := <-sc.wroteFrameCh: sc.wroteFrame(res) case res := <-sc.readFrameCh: + // Process any written frames before reading new frames from the client since a + // written frame could have triggered a new stream to be started. + if sc.writingFrameAsync { + select { + case wroteRes := <-sc.wroteFrameCh: + sc.wroteFrame(wroteRes) + default: + } + } if !sc.processFrameFromReader(res) { return } |