Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Side by Side Diff: net/quic/quic_connection.h

Issue 682413002: Close the QUIC connection if too many sent or received packets are (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Remove_QUIC_VERSION_21_78604601
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/quic/quic_connection.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 595
596 // Make sure a stop waiting we got from our peer is sane. 596 // Make sure a stop waiting we got from our peer is sane.
597 bool ValidateStopWaitingFrame(const QuicStopWaitingFrame& stop_waiting); 597 bool ValidateStopWaitingFrame(const QuicStopWaitingFrame& stop_waiting);
598 598
599 // Sends a version negotiation packet to the peer. 599 // Sends a version negotiation packet to the peer.
600 void SendVersionNegotiationPacket(); 600 void SendVersionNegotiationPacket();
601 601
602 // Clears any accumulated frames from the last received packet. 602 // Clears any accumulated frames from the last received packet.
603 void ClearLastFrames(); 603 void ClearLastFrames();
604 604
605 // Closes the connection if the sent or received packet manager are tracking
606 // too many outstanding packets.
607 void MaybeCloseIfTooManyOutstandingPackets();
608
605 // Writes as many queued packets as possible. The connection must not be 609 // Writes as many queued packets as possible. The connection must not be
606 // blocked when this is called. 610 // blocked when this is called.
607 void WriteQueuedPackets(); 611 void WriteQueuedPackets();
608 612
609 // Writes as many pending retransmissions as possible. 613 // Writes as many pending retransmissions as possible.
610 void WritePendingRetransmissions(); 614 void WritePendingRetransmissions();
611 615
612 // Returns true if the packet should be discarded and not sent. 616 // Returns true if the packet should be discarded and not sent.
613 bool ShouldDiscardPacket(const QueuedPacket& packet); 617 bool ShouldDiscardPacket(const QueuedPacket& packet);
614 618
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 // If non-empty this contains the set of versions received in a 828 // If non-empty this contains the set of versions received in a
825 // version negotiation packet. 829 // version negotiation packet.
826 QuicVersionVector server_supported_versions_; 830 QuicVersionVector server_supported_versions_;
827 831
828 DISALLOW_COPY_AND_ASSIGN(QuicConnection); 832 DISALLOW_COPY_AND_ASSIGN(QuicConnection);
829 }; 833 };
830 834
831 } // namespace net 835 } // namespace net
832 836
833 #endif // NET_QUIC_QUIC_CONNECTION_H_ 837 #endif // NET_QUIC_QUIC_CONNECTION_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698