ngtcp2: add missing nghttp3_conn_add_write_offset call

Closes #4225
This commit is contained in:
Tatsuhiro Tsujikawa 2019-08-15 14:53:24 +09:00 committed by Daniel Stenberg
parent c47ef9115e
commit 408c758bb8
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1946,6 +1946,15 @@ static CURLcode ng_flush_egress(struct connectdata *conn, int sockfd,
return CURLE_SEND_ERROR;
}
}
else if(ndatalen > 0) {
rv = nghttp3_conn_add_write_offset(qs->h3conn, stream_id, ndatalen);
if(rv != 0) {
failf(conn->data,
"nghttp3_conn_add_write_offset returned error: %s\n",
nghttp3_strerror(rv));
return CURLE_SEND_ERROR;
}
}
}
}
if(outlen < 0) {