QUIC RXFC: Don't emit a MAX_STREAM_DATA frame if we have a final size

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19703)
This commit is contained in:
Hugo Landau 2022-10-31 15:22:45 +00:00
parent 70d45893d0
commit c4abf9ebb0
1 changed files with 5 additions and 1 deletions

View File

@ -230,7 +230,11 @@ static int rxfc_cwm_bump_desired(QUIC_RXFC *rxfc)
*/
threshold = rxfc->cur_window_size / 2;
return window_rem <= threshold;
/*
* No point emitting a new MAX_STREAM_DATA frame if the stream has a final
* size.
*/
return !rxfc->is_fin && window_rem <= threshold;
}
static int rxfc_should_bump_window_size(QUIC_RXFC *rxfc, OSSL_TIME rtt)