ngtcp2: replace deprecated functions with nghttp3_conn_shutdown_stream_read

Closes #7546
This commit is contained in:
Tatsuhiro Tsujikawa 2021-08-09 22:24:16 +09:00 committed by Daniel Stenberg
parent 636006dd36
commit dff44c2955
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -653,7 +653,7 @@ static int cb_stream_reset(ngtcp2_conn *tconn, int64_t stream_id,
(void)app_error_code;
(void)stream_user_data;
rv = nghttp3_conn_reset_stream(qs->h3conn, stream_id);
rv = nghttp3_conn_shutdown_stream_read(qs->h3conn, stream_id);
if(rv) {
return NGTCP2_ERR_CALLBACK_FAILURE;
}
@ -671,7 +671,7 @@ static int cb_stream_stop_sending(ngtcp2_conn *tconn, int64_t stream_id,
(void)app_error_code;
(void)stream_user_data;
rv = nghttp3_conn_stop_sending(qs->h3conn, stream_id);
rv = nghttp3_conn_shutdown_stream_read(qs->h3conn, stream_id);
if(rv) {
return NGTCP2_ERR_CALLBACK_FAILURE;
}