| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ | 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ |
| 6 #define NET_QUIC_QUIC_PROTOCOL_H_ | 6 #define NET_QUIC_QUIC_PROTOCOL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // Minimum size of initial flow control window, for both stream and session. | 71 // Minimum size of initial flow control window, for both stream and session. |
| 72 const uint32_t kMinimumFlowControlSendWindow = 16 * 1024; // 16 KB | 72 const uint32_t kMinimumFlowControlSendWindow = 16 * 1024; // 16 KB |
| 73 | 73 |
| 74 // Maximum flow control receive window limits for connection and stream. | 74 // Maximum flow control receive window limits for connection and stream. |
| 75 const QuicByteCount kStreamReceiveWindowLimit = 16 * 1024 * 1024; // 16 MB | 75 const QuicByteCount kStreamReceiveWindowLimit = 16 * 1024 * 1024; // 16 MB |
| 76 const QuicByteCount kSessionReceiveWindowLimit = 24 * 1024 * 1024; // 24 MB | 76 const QuicByteCount kSessionReceiveWindowLimit = 24 * 1024 * 1024; // 24 MB |
| 77 | 77 |
| 78 // Minimum size of the CWND, in packets, when doing bandwidth resumption. | 78 // Minimum size of the CWND, in packets, when doing bandwidth resumption. |
| 79 const QuicPacketCount kMinCongestionWindowForBandwidthResumption = 10; | 79 const QuicPacketCount kMinCongestionWindowForBandwidthResumption = 10; |
| 80 | 80 |
| 81 // Maximum size of the CWND, in packets. | |
| 82 const QuicPacketCount kMaxCongestionWindow = 200; | |
| 83 | |
| 84 // Maximum number of tracked packets. | 81 // Maximum number of tracked packets. |
| 85 const QuicPacketCount kMaxTrackedPackets = 5000; | 82 const QuicPacketCount kMaxTrackedPackets = 5000; |
| 86 | 83 |
| 87 // Default size of the socket receive buffer in bytes. | 84 // Default size of the socket receive buffer in bytes. |
| 88 const QuicByteCount kDefaultSocketReceiveBuffer = 256 * 1024; | 85 const QuicByteCount kDefaultSocketReceiveBuffer = 256 * 1024; |
| 89 // Minimum size of the socket receive buffer in bytes. | 86 // Minimum size of the socket receive buffer in bytes. |
| 90 // Smaller values are ignored. | 87 // Smaller values are ignored. |
| 91 const QuicByteCount kMinSocketReceiveBuffer = 16 * 1024; | 88 const QuicByteCount kMinSocketReceiveBuffer = 16 * 1024; |
| 92 | 89 |
| 93 // Fraction of the receive buffer that can be used for encrypted bytes. | 90 // Fraction of the receive buffer that can be used for encrypted bytes. |
| (...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1493 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1490 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
| 1494 | 1491 |
| 1495 const struct iovec* iov; | 1492 const struct iovec* iov; |
| 1496 const int iov_count; | 1493 const int iov_count; |
| 1497 const size_t total_length; | 1494 const size_t total_length; |
| 1498 }; | 1495 }; |
| 1499 | 1496 |
| 1500 } // namespace net | 1497 } // namespace net |
| 1501 | 1498 |
| 1502 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1499 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |