]> granicus.if.org Git - curl/commit
http2: Fix missing nghttp2_session_send call in Curl_http2_switched
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Wed, 1 Apr 2015 15:28:58 +0000 (00:28 +0900)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 2 Apr 2015 13:19:29 +0000 (15:19 +0200)
commit21e82bd635124881a4a2ac08b3b9b28efe98afee
treeb619753f1d34ba0addcaeb9d63df46c464c4dda4
parent2685041a5c285968696de639699fb39a0fdf8c69
http2: Fix missing nghttp2_session_send call in Curl_http2_switched

Previously in Curl_http2_switched, we called nghttp2_session_mem_recv to
parse incoming data which were already received while curl was handling
upgrade.  But we didn't call nghttp2_session_send, and it led to make
curl not send any response to the received frames.  Most likely, we
received SETTINGS from server at this point, so we missed opportunity to
send SETTINGS + ACK.  This commit adds missing nghttp2_session_send call
in Curl_http2_switched to fix this issue.

Bug: https://github.com/bagder/curl/issues/192
Reported-by: Stefan Eissing
lib/http2.c
tests/data/test1801