mirror of
https://github.com/curl/curl.git
synced 2026-07-28 18:43:08 +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
|
|
@ -1880,7 +1880,11 @@ static ssize_t http2_send(struct connectdata *conn, int sockindex,
|
|||
are going to send or sending request body in DATA frame */
|
||||
stream->upload_mem = mem;
|
||||
stream->upload_len = len;
|
||||
nghttp2_session_resume_data(h2, stream->stream_id);
|
||||
rv = nghttp2_session_resume_data(h2, stream->stream_id);
|
||||
if(nghttp2_is_fatal(rv)) {
|
||||
*err = CURLE_SEND_ERROR;
|
||||
return -1;
|
||||
}
|
||||
rv = h2_session_send(conn->data, h2);
|
||||
if(nghttp2_is_fatal(rv)) {
|
||||
*err = CURLE_SEND_ERROR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue