]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ngtcp2: replace deprecated functions with nghttp3_conn_shutdown_stream_read
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Mon, 9 Aug 2021 13:24:16 +0000 (22:24 +0900)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 9 Aug 2021 14:53:32 +0000 (16:53 +0200)
Closes #7546

lib/vquic/ngtcp2.c

index 4ed07072b555ce0cf2e241f4384d2e56c15d9b60..107fcb8c1737bb51b3e7c918bde3478dd824708f 100644 (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;
   }