Fix call point of QuicRecvBufferTryIncreaseVirtualBufferLength

This commit is contained in:
Guillaume Hetier 2025-01-29 12:29:58 -08:00
Родитель 3ca2f64994
Коммит a35dec5bfd
1 изменённых файлов: 13 добавлений и 11 удалений

Просмотреть файл

@ -793,18 +793,19 @@ QuicStreamOnBytesDelivered(
// low.
//
QuicTraceLogStreamVerbose(
IncreaseRxBuffer,
Stream,
"Increasing max RX buffer size to %u (MinRtt=%llu; TimeNow=%llu; LastUpdate=%llu)",
Stream->RecvBuffer.VirtualBufferLength * 2,
Stream->Connection->Paths[0].MinRtt,
TimeNow,
Stream->RecvWindowLastUpdate);
QuicRecvBufferIncreaseVirtualBufferLength(
if (QuicRecvBufferTryIncreaseVirtualBufferLength(
&Stream->RecvBuffer,
Stream->RecvBuffer.VirtualBufferLength * 2);
Stream->RecvBuffer.VirtualBufferLength * 2)) {
QuicTraceLogStreamVerbose(
IncreaseRxBuffer,
Stream,
"Increasing max RX buffer size to %u (MinRtt=%llu; TimeNow=%llu; LastUpdate=%llu)",
Stream->RecvBuffer.VirtualBufferLength * 2,
Stream->Connection->Paths[0].MinRtt,
TimeNow,
Stream->RecvWindowLastUpdate);
}
}
}
@ -873,6 +874,7 @@ QuicStreamRecvFlush(
while (FlushRecv) {
CXPLAT_DBG_ASSERT(!Stream->Flags.SentStopSending);
// TODO guhetier: Need to allocate a variable nb of buffers
QUIC_BUFFER RecvBuffers[3];
QUIC_STREAM_EVENT Event = {0};
Event.Type = QUIC_STREAM_EVENT_RECEIVE;