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

Side by Side Diff: net/quic/quic_framer.cc

Issue 2102723002: Add extra logging when QuicFramer's AppendStopWaiting fails to serialize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@125561343
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | 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 #include "net/quic/quic_framer.h" 5 #include "net/quic/quic_framer.h"
6 6
7 #include <cstdint> 7 #include <cstdint>
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 2479 matching lines...) Expand 10 before | Expand all | Expand 10 after
2490 if (quic_version_ <= QUIC_VERSION_33) { 2490 if (quic_version_ <= QUIC_VERSION_33) {
2491 if (!writer->WriteUInt8(frame.entropy_hash)) { 2491 if (!writer->WriteUInt8(frame.entropy_hash)) {
2492 QUIC_BUG << " hash failed"; 2492 QUIC_BUG << " hash failed";
2493 return false; 2493 return false;
2494 } 2494 }
2495 } 2495 }
2496 2496
2497 if (least_unacked_delta >> length_shift > 0) { 2497 if (least_unacked_delta >> length_shift > 0) {
2498 QUIC_BUG << "packet_number_length " 2498 QUIC_BUG << "packet_number_length "
2499 << header.public_header.packet_number_length 2499 << header.public_header.packet_number_length
2500 << " is too small for least_unacked_delta: " 2500 << " is too small for least_unacked_delta: " << least_unacked_delta
2501 << least_unacked_delta; 2501 << " packet_number:" << header.packet_number
2502 << "least_unacked:" << frame.least_unacked
ramant (doing other things) 2016/06/27 22:23:54 overly nit: "least_unacked:" -> << " least_unacke
Ryan Hamilton 2016/06/27 22:35:09 Done. In Final. Thanks!
2503 << " version:" << quic_version_;
2502 return false; 2504 return false;
2503 } 2505 }
2504 if (!AppendPacketSequenceNumber(header.public_header.packet_number_length, 2506 if (!AppendPacketSequenceNumber(header.public_header.packet_number_length,
2505 least_unacked_delta, writer)) { 2507 least_unacked_delta, writer)) {
2506 QUIC_BUG << " seq failed: " << header.public_header.packet_number_length; 2508 QUIC_BUG << " seq failed: " << header.public_header.packet_number_length;
2507 return false; 2509 return false;
2508 } 2510 }
2509 2511
2510 return true; 2512 return true;
2511 } 2513 }
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
2589 2591
2590 bool QuicFramer::RaiseError(QuicErrorCode error) { 2592 bool QuicFramer::RaiseError(QuicErrorCode error) {
2591 DVLOG(1) << "Error: " << QuicUtils::ErrorToString(error) 2593 DVLOG(1) << "Error: " << QuicUtils::ErrorToString(error)
2592 << " detail: " << detailed_error_; 2594 << " detail: " << detailed_error_;
2593 set_error(error); 2595 set_error(error);
2594 visitor_->OnError(this); 2596 visitor_->OnError(this);
2595 return false; 2597 return false;
2596 } 2598 }
2597 2599
2598 } // namespace net 2600 } // namespace net
OLDNEW
« 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