]> git.ipfire.org Git - thirdparty/curl.git/commit
http2: Fix busy loop when EOF is encountered
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Sat, 13 Sep 2014 02:59:23 +0000 (11:59 +0900)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 13 Sep 2014 11:54:08 +0000 (13:54 +0200)
commit7d9bef9286cd8efbed032d41a36e82d1c44058a7
tree831152bfd98936915b6ea859c2501003b8813346
parent1d2ffb47125700c6c6a9371794490cc4b011dbde
http2: Fix busy loop when EOF is encountered

Previously we did not handle EOF from underlying transport socket and
wrongly just returned error code CURL_AGAIN from http2_recv, which
caused busy loop since socket has been closed.  This patch adds the
code to handle EOF situation and tells the upper layer that we got
EOF.
lib/http2.c