Index: net/quic/quic_protocol.h |
diff --git a/net/quic/quic_protocol.h b/net/quic/quic_protocol.h |
index e4ea75fc3e4fe7d2d86714ad088312cd995d87c8..7677c53dc236f5772e554f3e3d2c8fb8f19bb9e4 100644 |
--- a/net/quic/quic_protocol.h |
+++ b/net/quic/quic_protocol.h |
@@ -81,6 +81,10 @@ const QuicByteCount kDefaultSocketReceiveBuffer = 256 * 1024; |
// Smaller values are ignored. |
const QuicByteCount kMinSocketReceiveBuffer = 16 * 1024; |
+// Fraction of the receive buffer that can be used for encrypted bytes. |
+// Allows a 5% overhead for IP and UDP framing, as well as ack only packets. |
+static const float kUsableRecieveBufferFraction = 0.95f; |
+ |
// Don't allow a client to suggest an RTT shorter than 10ms. |
const uint32 kMinInitialRoundTripTimeUs = 10 * kNumMicrosPerMilli; |