| 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 // The entity that handles framing writes for a Quic client or server. | 5 // The entity that handles framing writes for a Quic client or server. |
| 6 // Each QuicSession will have a connection associated with it. | 6 // Each QuicSession will have a connection associated with it. |
| 7 // | 7 // |
| 8 // On the server side, the Dispatcher handles the raw reads, and hands off | 8 // On the server side, the Dispatcher handles the raw reads, and hands off |
| 9 // packets via ProcessUdpPacket for framing and processing. | 9 // packets via ProcessUdpPacket for framing and processing. |
| 10 // | 10 // |
| (...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 923 | 923 |
| 924 // Determines whether or not a connection close packet is sent to the peer | 924 // Determines whether or not a connection close packet is sent to the peer |
| 925 // after idle timeout due to lack of network activity. | 925 // after idle timeout due to lack of network activity. |
| 926 // This is particularly important on mobile, where waking up the radio is | 926 // This is particularly important on mobile, where waking up the radio is |
| 927 // undesirable. | 927 // undesirable. |
| 928 ConnectionCloseBehavior idle_timeout_connection_close_behavior_; | 928 ConnectionCloseBehavior idle_timeout_connection_close_behavior_; |
| 929 | 929 |
| 930 // When true, close the QUIC connection after 5 RTOs. Due to the min rto of | 930 // When true, close the QUIC connection after 5 RTOs. Due to the min rto of |
| 931 // 200ms, this is over 5 seconds. | 931 // 200ms, this is over 5 seconds. |
| 932 bool close_connection_after_five_rtos_; | 932 bool close_connection_after_five_rtos_; |
| 933 // When true, close the QUIC connection when there are no open streams after |
| 934 // 3 consecutive RTOs. |
| 935 bool close_connection_after_three_rtos_; |
| 933 | 936 |
| 934 QuicReceivedPacketManager received_packet_manager_; | 937 QuicReceivedPacketManager received_packet_manager_; |
| 935 | 938 |
| 936 // Indicates whether an ack should be sent the next time we try to write. | 939 // Indicates whether an ack should be sent the next time we try to write. |
| 937 bool ack_queued_; | 940 bool ack_queued_; |
| 938 // How many retransmittable packets have arrived without sending an ack. | 941 // How many retransmittable packets have arrived without sending an ack. |
| 939 QuicPacketCount num_retransmittable_packets_received_since_last_ack_sent_; | 942 QuicPacketCount num_retransmittable_packets_received_since_last_ack_sent_; |
| 940 // Whether there were missing packets in the last sent ack. | 943 // Whether there were missing packets in the last sent ack. |
| 941 bool last_ack_had_missing_packets_; | 944 bool last_ack_had_missing_packets_; |
| 942 // How many consecutive packets have arrived without sending an ack. | 945 // How many consecutive packets have arrived without sending an ack. |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1090 | 1093 |
| 1091 // Consecutive number of sent packets which have no retransmittable frames. | 1094 // Consecutive number of sent packets which have no retransmittable frames. |
| 1092 size_t consecutive_num_packets_with_no_retransmittable_frames_; | 1095 size_t consecutive_num_packets_with_no_retransmittable_frames_; |
| 1093 | 1096 |
| 1094 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1097 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 1095 }; | 1098 }; |
| 1096 | 1099 |
| 1097 } // namespace net | 1100 } // namespace net |
| 1098 | 1101 |
| 1099 #endif // NET_QUIC_CORE_QUIC_CONNECTION_H_ | 1102 #endif // NET_QUIC_CORE_QUIC_CONNECTION_H_ |
| OLD | NEW |