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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 // Reserved ID for the crypto stream. | 102 // Reserved ID for the crypto stream. |
103 const QuicStreamId kCryptoStreamId = 1; | 103 const QuicStreamId kCryptoStreamId = 1; |
104 | 104 |
105 // Reserved ID for the headers stream. | 105 // Reserved ID for the headers stream. |
106 const QuicStreamId kHeadersStreamId = 3; | 106 const QuicStreamId kHeadersStreamId = 3; |
107 | 107 |
108 // Maximum delayed ack time, in ms. | 108 // Maximum delayed ack time, in ms. |
109 const int kMaxDelayedAckTimeMs = 25; | 109 const int kMaxDelayedAckTimeMs = 25; |
110 | 110 |
111 // The default idle timeout before the crypto handshake succeeds. | 111 // The timeout before the handshake succeeds. |
112 const int64 kDefaultInitialTimeoutSecs = 120; // 2 mins. | 112 const int64 kInitialIdleTimeoutSecs = 5; |
| 113 // The default idle timeout. |
| 114 const int64 kDefaultIdleTimeoutSecs = 30; |
113 // The maximum idle timeout that can be negotiated. | 115 // The maximum idle timeout that can be negotiated. |
114 const int64 kMaximumIdleTimeoutSecs = 60 * 10; // 10 minutes. | 116 const int64 kMaximumIdleTimeoutSecs = 60 * 10; // 10 minutes. |
115 // The default timeout for a connection until the crypto handshake succeeds. | 117 // The default timeout for a connection until the crypto handshake succeeds. |
116 const int64 kDefaultMaxTimeForCryptoHandshakeSecs = 10; // 10 secs. | 118 const int64 kMaxTimeForCryptoHandshakeSecs = 10; // 10 secs. |
117 | 119 |
118 // Default ping timeout. | 120 // Default ping timeout. |
119 const int64 kPingTimeoutSecs = 15; // 15 secs. | 121 const int64 kPingTimeoutSecs = 15; // 15 secs. |
120 | 122 |
121 // Minimum number of RTTs between Server Config Updates (SCUP) sent to client. | 123 // Minimum number of RTTs between Server Config Updates (SCUP) sent to client. |
122 const int kMinIntervalBetweenServerConfigUpdatesRTTs = 10; | 124 const int kMinIntervalBetweenServerConfigUpdatesRTTs = 10; |
123 | 125 |
124 // Minimum time between Server Config Updates (SCUP) sent to client. | 126 // Minimum time between Server Config Updates (SCUP) sent to client. |
125 const int kMinIntervalBetweenServerConfigUpdatesMs = 1000; | 127 const int kMinIntervalBetweenServerConfigUpdatesMs = 1000; |
126 | 128 |
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1082 SequenceNumberList* all_transmissions; | 1084 SequenceNumberList* all_transmissions; |
1083 // In flight packets have not been abandoned or lost. | 1085 // In flight packets have not been abandoned or lost. |
1084 bool in_flight; | 1086 bool in_flight; |
1085 // True if the packet can never be acked, so it can be removed. | 1087 // True if the packet can never be acked, so it can be removed. |
1086 bool is_unackable; | 1088 bool is_unackable; |
1087 }; | 1089 }; |
1088 | 1090 |
1089 } // namespace net | 1091 } // namespace net |
1090 | 1092 |
1091 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1093 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |