Skip to content

Commit

Permalink
QUIC FC: Correct operation of stream count mode
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #20856)
  • Loading branch information
hlandau committed May 24, 2023
1 parent e8142d2 commit 3dde343
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ssl/quic/quic_fc.c
Expand Up @@ -341,7 +341,7 @@ int ossl_quic_rxfc_on_retire(QUIC_RXFC *rxfc,
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)
Expand All @@ -352,7 +352,10 @@ int ossl_quic_rxfc_on_retire(QUIC_RXFC *rxfc,
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;
}

Expand Down

0 comments on commit 3dde343

Please sign in to comment.