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 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
894 bool save_crypto_packets_as_termination_packets_; | 894 bool save_crypto_packets_as_termination_packets_; |
895 | 895 |
896 // Contains the connection close packets if the connection has been closed. | 896 // Contains the connection close packets if the connection has been closed. |
897 scoped_ptr<std::vector<QuicEncryptedPacket*>> termination_packets_; | 897 scoped_ptr<std::vector<QuicEncryptedPacket*>> termination_packets_; |
898 | 898 |
899 // When true, the connection does not send a close packet on idle timeout due | 899 // When true, the connection does not send a close packet on idle timeout due |
900 // to lack of network activity. | 900 // to lack of network activity. |
901 // This is particularly important on mobile, where connections are short. | 901 // This is particularly important on mobile, where connections are short. |
902 bool silent_close_enabled_; | 902 bool silent_close_enabled_; |
903 | 903 |
| 904 // When true, close the QUIC connection after 5 RTOs. Due to the min rto of |
| 905 // 200ms, this is over 5 seconds. |
| 906 bool close_connection_after_five_rtos_; |
| 907 |
904 QuicReceivedPacketManager received_packet_manager_; | 908 QuicReceivedPacketManager received_packet_manager_; |
905 QuicSentEntropyManager sent_entropy_manager_; | 909 QuicSentEntropyManager sent_entropy_manager_; |
906 | 910 |
907 // Indicates whether an ack should be sent the next time we try to write. | 911 // Indicates whether an ack should be sent the next time we try to write. |
908 bool ack_queued_; | 912 bool ack_queued_; |
909 // How many retransmittable packets have arrived without sending an ack. | 913 // How many retransmittable packets have arrived without sending an ack. |
910 QuicPacketCount num_retransmittable_packets_received_since_last_ack_sent_; | 914 QuicPacketCount num_retransmittable_packets_received_since_last_ack_sent_; |
911 // Whether there were missing packets in the last sent ack. | 915 // Whether there were missing packets in the last sent ack. |
912 bool last_ack_had_missing_packets_; | 916 bool last_ack_had_missing_packets_; |
913 // How many consecutive packets have arrived without sending an ack. | 917 // How many consecutive packets have arrived without sending an ack. |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1045 | 1049 |
1046 // If true, multipath is enabled for this connection. | 1050 // If true, multipath is enabled for this connection. |
1047 bool multipath_enabled_; | 1051 bool multipath_enabled_; |
1048 | 1052 |
1049 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1053 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
1050 }; | 1054 }; |
1051 | 1055 |
1052 } // namespace net | 1056 } // namespace net |
1053 | 1057 |
1054 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 1058 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
OLD | NEW |