mirror of
https://github.com/curl/curl.git
synced 2025-03-01 15:15:34 +08:00
ngtcp2: Fix build error due to change in nghttp3 prototypes
ngtcp2/nghttp3@4a066b2 changed nghttp3_conn_block_stream and nghttp3_conn_shutdown_stream_write return from int to void. Reported-by: jurisuk@users.noreply.github.com Fixes https://github.com/curl/curl/issues/9204 Closes https://github.com/curl/curl/pull/9200
This commit is contained in:
parent
e28edb6678
commit
9bd40e2b69
@ -1939,22 +1939,11 @@ static CURLcode ng_flush_egress(struct Curl_easy *data,
|
||||
switch(outlen) {
|
||||
case NGTCP2_ERR_STREAM_DATA_BLOCKED:
|
||||
assert(ndatalen == -1);
|
||||
rv = nghttp3_conn_block_stream(qs->h3conn, stream_id);
|
||||
if(rv) {
|
||||
failf(data, "nghttp3_conn_block_stream returned error: %s\n",
|
||||
nghttp3_strerror(rv));
|
||||
return CURLE_SEND_ERROR;
|
||||
}
|
||||
nghttp3_conn_block_stream(qs->h3conn, stream_id);
|
||||
continue;
|
||||
case NGTCP2_ERR_STREAM_SHUT_WR:
|
||||
assert(ndatalen == -1);
|
||||
rv = nghttp3_conn_shutdown_stream_write(qs->h3conn, stream_id);
|
||||
if(rv) {
|
||||
failf(data,
|
||||
"nghttp3_conn_shutdown_stream_write returned error: %s\n",
|
||||
nghttp3_strerror(rv));
|
||||
return CURLE_SEND_ERROR;
|
||||
}
|
||||
nghttp3_conn_shutdown_stream_write(qs->h3conn, stream_id);
|
||||
continue;
|
||||
case NGTCP2_ERR_WRITE_MORE:
|
||||
assert(ndatalen >= 0);
|
||||
|
Loading…
Reference in New Issue
Block a user