Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20856)
uint64_t num_bytes,
OSSL_TIME rtt)
{
- if (rxfc->parent == NULL)
+ if (rxfc->parent == NULL && !rxfc->stream_count_mode)
return 0;
if (num_bytes == 0)
return 0;
rxfc_on_retire(rxfc, num_bytes, 0, rtt);
- rxfc_on_retire(rxfc->parent, num_bytes, rxfc->cur_window_size, rtt);
+
+ if (!rxfc->stream_count_mode)
+ rxfc_on_retire(rxfc->parent, num_bytes, rxfc->cur_window_size, rtt);
+
return 1;
}