quic: stop guarding ngtcp2_recv_stop_sending callback field

Signed-off-by: Renegade334 <contact.9a5d6388@renegade334.me.uk>
PR-URL: https://github.com/nodejs/node/pull/65688
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
René authored and Antoine du Hamel committed 2026-09-15 10:49:40 +02:00
1 parent 7b4c17f723
commit 855fff682f
2 files changed
+16 -20

No files matched your search

+2 -2
View File
@@ -1430,7 +1430,7 @@ class Http3ApplicationImpl final : public Session::Application {
static constexpr nghttp3_callbacks kCallbacks = {
on_acked_stream_data,
nullptr, // nghttp3_stream_close (deprecated)
nullptr, // stream_close (deprecated, use v2 below)
on_receive_data,
on_deferred_consume,
on_begin_headers,
@@ -1443,7 +1443,7 @@ class Http3ApplicationImpl final : public Session::Application {
on_end_stream,
on_do_reset_stream,
on_shutdown,
nullptr, // recv_settings (deprecated)
nullptr, // recv_settings (deprecated, use v2 below)
on_receive_origin,
on_end_origin,
on_rand,
+14 -18
View File
@@ -1653,7 +1653,7 @@ struct Session::Impl final : public MemoryRetainer {
static constexpr ngtcp2_callbacks CLIENT = {
ngtcp2_crypto_client_initial_cb,
nullptr, // stream_stop_sending
nullptr, // recv_client_initial
ngtcp2_crypto_recv_crypto_data_cb,
on_handshake_completed,
on_receive_version_negotiation,
@@ -1687,7 +1687,7 @@ struct Session::Impl final : public MemoryRetainer {
on_acknowledge_datagram,
on_lost_datagram,
nullptr, // get_path_challenge_data (deprecated, use v2 below)
nullptr, // stream_stop_sending
nullptr, // stream_stop_sending (deprecated, use v2 below)
ngtcp2_crypto_version_negotiation_cb,
on_receive_rx_key,
on_receive_tx_key,
@@ -1697,20 +1697,18 @@ struct Session::Impl final : public MemoryRetainer {
on_get_new_cid,
on_cid_status,
ngtcp2_crypto_get_path_challenge_data2_cb,
#ifdef NGTCP2_CALLBACKS_V4
on_receive_stream_stop_sending,
#ifdef NGTCP2_CALLBACKS_V5
nullptr,
#endif // NGTCP2_CALLBACKS_V5
#endif // NGTCP2_CALLBACKS_V4
nullptr, // stream_close2
#endif
};
static constexpr ngtcp2_callbacks SERVER = {
nullptr, // stream_stop_sending
nullptr, // client_initial
ngtcp2_crypto_recv_client_initial_cb,
ngtcp2_crypto_recv_crypto_data_cb,
on_handshake_completed,
nullptr,
nullptr, // recv_version_negotiation
ngtcp2_crypto_encrypt_cb,
ngtcp2_crypto_decrypt_cb,
ngtcp2_crypto_hp_mask_cb,
@@ -1719,7 +1717,7 @@ struct Session::Impl final : public MemoryRetainer {
on_stream_open,
on_stream_close,
nullptr, // recv_stateless_reset (deprecated, use v2 below)
nullptr,
nullptr, // recv_retry
on_extend_max_streams_bidi,
on_extend_max_streams_uni,
on_rand,
@@ -1727,23 +1725,23 @@ struct Session::Impl final : public MemoryRetainer {
on_remove_connection_id,
ngtcp2_crypto_update_key_cb,
on_path_validation,
nullptr,
nullptr, // select_preferred_addr
on_stream_reset,
on_extend_max_remote_streams_bidi,
on_extend_max_remote_streams_uni,
on_extend_max_stream_data,
nullptr, // dcid_status (deprecated, use v2 below)
nullptr,
nullptr,
nullptr, // handshake_confirmed
nullptr, // recv_new_token
ngtcp2_crypto_delete_crypto_aead_ctx_cb,
ngtcp2_crypto_delete_crypto_cipher_ctx_cb,
on_receive_datagram,
on_acknowledge_datagram,
on_lost_datagram,
nullptr, // get_path_challenge_data (deprecated, use v2 below)
nullptr, // stream_stop_sending
nullptr, // stream_stop_sending (deprecated, use v2 below)
ngtcp2_crypto_version_negotiation_cb,
nullptr,
nullptr, // recv_rx_key
on_receive_tx_key,
on_early_data_rejected,
on_begin_path_validation,
@@ -1751,12 +1749,10 @@ struct Session::Impl final : public MemoryRetainer {
on_get_new_cid,
on_cid_status,
ngtcp2_crypto_get_path_challenge_data2_cb,
#ifdef NGTCP2_CALLBACKS_V4
on_receive_stream_stop_sending,
#ifdef NGTCP2_CALLBACKS_V5
nullptr,
#endif // NGTCP2_CALLBACKS_V5
#endif // NGTCP2_CALLBACKS_V4
nullptr, // stream_close2
#endif
};
};