mirror of
https://github.com/curl/curl.git
synced 2026-06-02 00:04:15 +03:00
http2_recv: Return written length on CURLE_AGAIN
This commit is contained in:
parent
88705ef80e
commit
c5165b8458
1 changed files with 5 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue