mirror of
https://github.com/openssl/openssl.git
synced 2024-12-09 05:51:54 +08:00
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:
parent
70d45893d0
commit
c4abf9ebb0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user