| 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 <list> | 10 #include <list> |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 // The timeout before the handshake succeeds. | 111 // The timeout before the handshake succeeds. |
| 112 const int64 kInitialIdleTimeoutSecs = 5; | 112 const int64 kInitialIdleTimeoutSecs = 5; |
| 113 // The default idle timeout. | 113 // The default idle timeout. |
| 114 const int64 kDefaultIdleTimeoutSecs = 30; | 114 const int64 kDefaultIdleTimeoutSecs = 30; |
| 115 // The maximum idle timeout that can be negotiated. | 115 // The maximum idle timeout that can be negotiated. |
| 116 const int64 kMaximumIdleTimeoutSecs = 60 * 10; // 10 minutes. | 116 const int64 kMaximumIdleTimeoutSecs = 60 * 10; // 10 minutes. |
| 117 // The default timeout for a connection until the crypto handshake succeeds. | 117 // The default timeout for a connection until the crypto handshake succeeds. |
| 118 const int64 kMaxTimeForCryptoHandshakeSecs = 10; // 10 secs. | 118 const int64 kMaxTimeForCryptoHandshakeSecs = 10; // 10 secs. |
| 119 | 119 |
| 120 // Default limit on the number of undecryptable packets the connection buffers |
| 121 // before the CHLO/SHLO arrive. |
| 122 const size_t kDefaultMaxUndecryptablePackets = 10; |
| 123 |
| 120 // Default ping timeout. | 124 // Default ping timeout. |
| 121 const int64 kPingTimeoutSecs = 15; // 15 secs. | 125 const int64 kPingTimeoutSecs = 15; // 15 secs. |
| 122 | 126 |
| 123 // Minimum number of RTTs between Server Config Updates (SCUP) sent to client. | 127 // Minimum number of RTTs between Server Config Updates (SCUP) sent to client. |
| 124 const int kMinIntervalBetweenServerConfigUpdatesRTTs = 10; | 128 const int kMinIntervalBetweenServerConfigUpdatesRTTs = 10; |
| 125 | 129 |
| 126 // Minimum time between Server Config Updates (SCUP) sent to client. | 130 // Minimum time between Server Config Updates (SCUP) sent to client. |
| 127 const int kMinIntervalBetweenServerConfigUpdatesMs = 1000; | 131 const int kMinIntervalBetweenServerConfigUpdatesMs = 1000; |
| 128 | 132 |
| 129 // The number of open streams that a server will accept is set to be slightly | 133 // The number of open streams that a server will accept is set to be slightly |
| (...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1084 SequenceNumberList* all_transmissions; | 1088 SequenceNumberList* all_transmissions; |
| 1085 // In flight packets have not been abandoned or lost. | 1089 // In flight packets have not been abandoned or lost. |
| 1086 bool in_flight; | 1090 bool in_flight; |
| 1087 // True if the packet can never be acked, so it can be removed. | 1091 // True if the packet can never be acked, so it can be removed. |
| 1088 bool is_unackable; | 1092 bool is_unackable; |
| 1089 }; | 1093 }; |
| 1090 | 1094 |
| 1091 } // namespace net | 1095 } // namespace net |
| 1092 | 1096 |
| 1093 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1097 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |