Allow peers to pick low flow control limits in T099
Google QUIC requires flow control limits to be above 16K but IETF QUIC allows any values. In order to interoperate we need to allow low values in T099.
gfe-relnote: protected by disabled flag quic_supports_tls_handshake
PiperOrigin-RevId: 246002368
Change-Id: I5660e591256a355985877c2fb3c41fee06eb5a06
diff --git a/quic/tools/quic_server.cc b/quic/tools/quic_server.cc
index d67bc30..f8df59a 100644
--- a/quic/tools/quic_server.cc
+++ b/quic/tools/quic_server.cc
@@ -90,12 +90,12 @@
const uint32_t kInitialSessionFlowControlWindow = 1 * 1024 * 1024; // 1 MB
const uint32_t kInitialStreamFlowControlWindow = 64 * 1024; // 64 KB
if (config_.GetInitialStreamFlowControlWindowToSend() ==
- kMinimumFlowControlSendWindow) {
+ kDefaultFlowControlSendWindow) {
config_.SetInitialStreamFlowControlWindowToSend(
kInitialStreamFlowControlWindow);
}
if (config_.GetInitialSessionFlowControlWindowToSend() ==
- kMinimumFlowControlSendWindow) {
+ kDefaultFlowControlSendWindow) {
config_.SetInitialSessionFlowControlWindowToSend(
kInitialSessionFlowControlWindow);
}