projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88705ef
)
http2_recv: Return written length on CURLE_AGAIN
author
Tatsuhiro Tsujikawa
<tatsuhiro.t@gmail.com>
Thu, 30 Jan 2014 16:49:35 +0000
(17:49 +0100)
committer
Daniel Stenberg
<daniel@haxx.se>
Thu, 30 Jan 2014 16:49:35 +0000
(17:49 +0100)
lib/http2.c
patch
|
blob
|
history
diff --git
a/lib/http2.c
b/lib/http2.c
index
214b469
..
0195185
100644
(file)
--- a/
lib/http2.c
+++ b/
lib/http2.c
@@
-372,8
+372,11
@@
static ssize_t http2_recv(struct connectdata *conn, int sockindex,
rc = Curl_read_plain(conn->sock[FIRSTSOCKET], inbuf, H2_BUFSIZE, &nread);
if(rc == CURLE_AGAIN) {
- *err = rc;
- return -1;
+ if(len == conn->proto.httpc.len) {
+ *err = rc;
+ return 0;
+ }
+ return len - conn->proto.httpc.len;
}
if(rc) {
failf(conn->data, "Failed receiving HTTP2 data");