Chromium Code Reviews| 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 <limits> | 9 #include <limits> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 const size_t kDefaultInitialWindow = 10; | 62 const size_t kDefaultInitialWindow = 10; |
| 63 const uint32 kMaxInitialWindow = 100; | 63 const uint32 kMaxInitialWindow = 100; |
| 64 | 64 |
| 65 // Default size of initial flow control window, for both stream and session. | 65 // Default size of initial flow control window, for both stream and session. |
| 66 const uint32 kDefaultFlowControlSendWindow = 16 * 1024; // 16 KB | 66 const uint32 kDefaultFlowControlSendWindow = 16 * 1024; // 16 KB |
| 67 | 67 |
| 68 // Maximum size of the congestion window, in packets, for TCP congestion control | 68 // Maximum size of the congestion window, in packets, for TCP congestion control |
| 69 // algorithms. | 69 // algorithms. |
| 70 const size_t kMaxTcpCongestionWindow = 200; | 70 const size_t kMaxTcpCongestionWindow = 200; |
| 71 | 71 |
| 72 // Size of the socket receive buffer in bytes. | |
| 73 const QuicByteCount kDefaultSocketReceiveBuffer = 256000; | |
|
wtc
2014/08/07 22:04:39
This is 250 KB. Just curious why we don't use a po
ramant (doing other things)
2014/08/07 22:16:14
Good point. In "spdy", we used to 64 * 1024.
ians
| |
| 74 | |
| 72 // Don't allow a client to suggest an RTT longer than 15 seconds. | 75 // Don't allow a client to suggest an RTT longer than 15 seconds. |
| 73 const uint32 kMaxInitialRoundTripTimeUs = 15 * kNumMicrosPerSecond; | 76 const uint32 kMaxInitialRoundTripTimeUs = 15 * kNumMicrosPerSecond; |
| 74 | 77 |
| 75 // Maximum number of open streams per connection. | 78 // Maximum number of open streams per connection. |
| 76 const size_t kDefaultMaxStreamsPerConnection = 100; | 79 const size_t kDefaultMaxStreamsPerConnection = 100; |
| 77 | 80 |
| 78 // Number of bytes reserved for public flags in the packet header. | 81 // Number of bytes reserved for public flags in the packet header. |
| 79 const size_t kPublicFlagsSize = 1; | 82 const size_t kPublicFlagsSize = 1; |
| 80 // Number of bytes reserved for version number in the packet header. | 83 // Number of bytes reserved for version number in the packet header. |
| 81 const size_t kQuicVersionSize = 4; | 84 const size_t kQuicVersionSize = 4; |
| (...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1053 // Stores the sequence numbers of all transmissions of this packet. | 1056 // Stores the sequence numbers of all transmissions of this packet. |
| 1054 // Can never be null. | 1057 // Can never be null. |
| 1055 SequenceNumberSet* all_transmissions; | 1058 SequenceNumberSet* all_transmissions; |
| 1056 // In flight packets have not been abandoned or lost. | 1059 // In flight packets have not been abandoned or lost. |
| 1057 bool in_flight; | 1060 bool in_flight; |
| 1058 }; | 1061 }; |
| 1059 | 1062 |
| 1060 } // namespace net | 1063 } // namespace net |
| 1061 | 1064 |
| 1062 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1065 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |