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

Unified Diff: net/quic/quic_connection.cc

Issue 1245013003: QUIC - clean up changes to keep internal source and chromium code in sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Protect_against_QUIC_crash_bug_98506577
Patch Set: Merge with TOT Created 5 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/quic/quic_protocol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection.cc
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
index 211340376ced86e481fff6426fbe499dd789deab..1388cf6250d4b72e1e1778b26f5907f90935475c 100644
--- a/net/quic/quic_connection.cc
+++ b/net/quic/quic_connection.cc
@@ -735,10 +735,8 @@ bool QuicConnection::OnAckFrame(const QuicAckFrame& incoming_ack) {
if (incoming_ack.is_truncated) {
should_last_packet_instigate_acks_ = true;
}
- QuicPacketSequenceNumber least_acked = GetLeastUnacked();
- if (least_acked > 0 &&
- (incoming_ack.missing_packets.empty() ||
- least_acked > *incoming_ack.missing_packets.begin())) {
+ if (!incoming_ack.missing_packets.empty() &&
+ GetLeastUnacked() > *incoming_ack.missing_packets.begin()) {
++stop_waiting_count_;
} else {
stop_waiting_count_ = 0;
« no previous file with comments | « no previous file | net/quic/quic_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698