mirror of
https://github.com/curl/curl.git
synced 2026-08-01 18:40:33 +03:00
http2: call done_sending on end of upload
To make sure a HTTP/2 stream registers the end of stream. Bug #4043 made me find this problem but this fix doesn't correct the reported issue. Closes #4068
This commit is contained in:
parent
d331227cf0
commit
265f7f42f6
4 changed files with 15 additions and 6 deletions
|
|
@ -937,8 +937,8 @@ static CURLcode readwrite_data(struct Curl_easy *data,
|
|||
return CURLE_OK;
|
||||
}
|
||||
|
||||
static CURLcode done_sending(struct connectdata *conn,
|
||||
struct SingleRequest *k)
|
||||
CURLcode Curl_done_sending(struct connectdata *conn,
|
||||
struct SingleRequest *k)
|
||||
{
|
||||
k->keepon &= ~KEEP_SEND; /* we're done writing */
|
||||
|
||||
|
|
@ -1046,7 +1046,7 @@ static CURLcode readwrite_upload(struct Curl_easy *data,
|
|||
break;
|
||||
}
|
||||
if(nread <= 0) {
|
||||
result = done_sending(conn, k);
|
||||
result = Curl_done_sending(conn, k);
|
||||
if(result)
|
||||
return result;
|
||||
break;
|
||||
|
|
@ -1164,7 +1164,7 @@ static CURLcode readwrite_upload(struct Curl_easy *data,
|
|||
k->upload_present = 0; /* no more bytes left */
|
||||
|
||||
if(k->upload_done) {
|
||||
result = done_sending(conn, k);
|
||||
result = Curl_done_sending(conn, k);
|
||||
if(result)
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue