Index: net/quic/quic_protocol.h |
diff --git a/net/quic/quic_protocol.h b/net/quic/quic_protocol.h |
index bcd58a2b33b0b0f5f297d6d786e36ef02fa9565a..8841a2a5a47efa4e252e690f966e54ce5a5bb095 100644 |
--- a/net/quic/quic_protocol.h |
+++ b/net/quic/quic_protocol.h |
@@ -124,9 +124,14 @@ const int kMinIntervalBetweenServerConfigUpdatesRTTs = 10; |
// Minimum time between Server Config Updates (SCUP) sent to client. |
const int kMinIntervalBetweenServerConfigUpdatesMs = 1000; |
-// Multiplier that allows server to accept slightly more streams than |
-// negotiated in handshake. |
+// The number of open streams that a server will accept is set to be slightly |
+// larger than the negotiated limit. Immediately closing the connection if the |
+// client opens slightly too many streams is not ideal: the client may have sent |
+// a FIN that was lost, and simultaneously opened a new stream. The number of |
+// streams a server accepts is a fixed increment over the negotiated limit, or a |
+// percentage increase, whichever is larger. |
const float kMaxStreamsMultiplier = 1.1f; |
+const int kMaxStreamsMinimumIncrement = 10; |
// We define an unsigned 16-bit floating point value, inspired by IEEE floats |
// (http://en.wikipedia.org/wiki/Half_precision_floating-point_format), |