]> granicus.if.org Git - curl/commit
http2: Deal with HTTP/2 data inside response header buffer
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Wed, 12 Nov 2014 17:07:24 +0000 (02:07 +0900)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 13 Nov 2014 14:38:12 +0000 (15:38 +0100)
commit7b7f0da4a7397c918308bf9acb831d4a1d1a9583
treeda99d5909e82ec1238ddc21e5cb749434ef362da
parent676d62fa0ede12e8f66688675d9db3bb7103cd55
http2: Deal with HTTP/2 data inside response header buffer

Previously if HTTP/2 traffic is appended to HTTP Upgrade response header
(thus they are in the same buffer), the trailing HTTP/2 traffic is not
processed and lost.  The appended data is most likely SETTINGS frame.
If it is lost, nghttp2 library complains server does not obey the HTTP/2
protocol and issues GOAWAY frame and curl eventually drops connection.
This commit fixes this problem and now trailing data is processed.
lib/http.c
lib/http2.c
lib/http2.h