Skip to content

Commit 8f63f6f

Browse files
nodejs-github-bottargos
authored andcommitted
deps: update ngtcp2 to 1.2.0
PR-URL: #51584 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 5fe493d commit 8f63f6f

14 files changed

Lines changed: 91 additions & 74 deletions

File tree

deps/ngtcp2/ngtcp2/lib/includes/ngtcp2/ngtcp2.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4269,6 +4269,9 @@ NGTCP2_EXTERN int ngtcp2_conn_open_uni_stream(ngtcp2_conn *conn,
42694269
*
42704270
* |flags| is currently unused, and should be set to 0.
42714271
*
4272+
* This function returns 0 if a stream denoted by |stream_id| is not
4273+
* found.
4274+
*
42724275
* This function returns 0 if it succeeds, or one of the following
42734276
* negative error codes:
42744277
*
@@ -4291,6 +4294,9 @@ NGTCP2_EXTERN int ngtcp2_conn_shutdown_stream(ngtcp2_conn *conn, uint32_t flags,
42914294
*
42924295
* |flags| is currently unused, and should be set to 0.
42934296
*
4297+
* This function returns 0 if a stream denoted by |stream_id| is not
4298+
* found.
4299+
*
42944300
* This function returns 0 if it succeeds, or one of the following
42954301
* negative error codes:
42964302
*
@@ -4315,6 +4321,9 @@ NGTCP2_EXTERN int ngtcp2_conn_shutdown_stream_write(ngtcp2_conn *conn,
43154321
*
43164322
* |flags| is currently unused, and should be set to 0.
43174323
*
4324+
* This function returns 0 if a stream denoted by |stream_id| is not
4325+
* found.
4326+
*
43184327
* This function returns 0 if it succeeds, or one of the following
43194328
* negative error codes:
43204329
*
@@ -4675,6 +4684,9 @@ NGTCP2_EXTERN int ngtcp2_conn_in_draining_period(ngtcp2_conn *conn);
46754684
* specifies the stream ID. This function only extends stream-level
46764685
* flow control window.
46774686
*
4687+
* This function returns 0 if a stream denoted by |stream_id| is not
4688+
* found.
4689+
*
46784690
* This function returns 0 if it succeeds, or one of the following
46794691
* negative error codes:
46804692
*
@@ -5340,6 +5352,11 @@ NGTCP2_EXTERN void ngtcp2_ccerr_set_application_error(ngtcp2_ccerr *ccerr,
53405352
* CONNECTION_CLOSE (type 0x1d) frame. Otherwise, it does not produce
53415353
* any data, and returns 0.
53425354
*
5355+
* |destlen| could be shorten by some factors (e.g., server side
5356+
* amplification limit). This function returns
5357+
* :macro:`NGTCP2_ERR_NOBUF` if the resulting buffer is too small even
5358+
* if the given buffer has enough space.
5359+
*
53435360
* This function must not be called from inside the callback
53445361
* functions.
53455362
*