зеркало из https://github.com/microsoft/msquic.git
Stop Framing When Out of Room (#167)
This commit is contained in:
Родитель
0531e943e5
Коммит
3b6f1e1f96
|
@ -677,6 +677,9 @@ QuicSendWriteFrames(
|
|||
if (!HasMoreCidsToSend) {
|
||||
Send->SendFlags &= ~QUIC_CONN_SEND_FLAG_NEW_CONNECTION_ID;
|
||||
}
|
||||
if (MaxFrameLimitHit || RanOutOfRoom) {
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
if ((Send->SendFlags & QUIC_CONN_SEND_FLAG_RETIRE_CONNECTION_ID)) {
|
||||
|
@ -725,6 +728,9 @@ QuicSendWriteFrames(
|
|||
if (!HasMoreCidsToSend) {
|
||||
Send->SendFlags &= ~QUIC_CONN_SEND_FLAG_RETIRE_CONNECTION_ID;
|
||||
}
|
||||
if (MaxFrameLimitHit || RanOutOfRoom) {
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
//
|
||||
// The maximum number of frames we will write to a single packet.
|
||||
//
|
||||
#define QUIC_MAX_FRAMES_PER_PACKET 8
|
||||
#define QUIC_MAX_FRAMES_PER_PACKET 12
|
||||
|
||||
typedef struct QUIC_STREAM QUIC_STREAM;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче