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

Unified Diff: net/quic/quic_packet_creator.cc

Issue 144063012: Fix a QUIC bug where previously undecryptable packets were not decrypted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: upload changes Created 6 years, 11 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
Index: net/quic/quic_packet_creator.cc
diff --git a/net/quic/quic_packet_creator.cc b/net/quic/quic_packet_creator.cc
index 2ac874742d9732b2afd5210e91b3d99e2ab9f756..48147f70d64c5bfc336a37de1e58c3b7502faa83 100644
--- a/net/quic/quic_packet_creator.cc
+++ b/net/quic/quic_packet_creator.cc
@@ -421,6 +421,16 @@ bool QuicPacketCreator::ShouldRetransmit(const QuicFrame& frame) {
bool QuicPacketCreator::AddFrame(const QuicFrame& frame,
bool save_retransmittable_frames) {
+#ifndef NDEBUG
+ if (frame.type == ACK_FRAME) {
Ryan Hamilton 2014/01/29 00:52:52 nit:I think I would use a switch statement here.
ramant (doing other things) 2014/01/29 02:45:38 Done.
+ DVLOG(1) << "AddFrame ACK_FRAME: " << *(frame.ack_frame);
+ } else if (frame.type == RST_STREAM_FRAME) {
+ DVLOG(1) << "AddFrame RST_STREAM_FRAME: " << *(frame.rst_stream_frame);
+ } else if (frame.type == STREAM_FRAME) {
+ DVLOG(1) << "AddFrame STREAM_FRAME: " << *(frame.stream_frame);
+ }
+#endif
+
size_t frame_len = framer_->GetSerializedFrameLength(
frame, BytesFree(), queued_frames_.empty(), true,
options()->send_sequence_number_length);

Powered by Google App Engine
This is Rietveld 408576698