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

Unified Diff: net/quic/quic_framer.cc

Issue 1760973003: Reserve exactly enough space for QUIC timestamps in QuicAckFrame. received_packet_times. No functi… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@115591067
Patch Set: Update dependency Created 4 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_framer.cc
diff --git a/net/quic/quic_framer.cc b/net/quic/quic_framer.cc
index 7d75b8fd06c2249d92e82b456e0212939d514c98..48248b1a3f83a4f82788f78fa2034bacfb7cb52f 100644
--- a/net/quic/quic_framer.cc
+++ b/net/quic/quic_framer.cc
@@ -1487,6 +1487,7 @@ bool QuicFramer::ProcessTimestampsInAckFrame(QuicDataReader* reader,
}
if (num_received_packets > 0) {
+ ack_frame->received_packet_times.reserve(num_received_packets);
uint8_t delta_from_largest_observed;
if (!reader->ReadBytes(&delta_from_largest_observed,
PACKET_1BYTE_PACKET_NUMBER)) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698