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

Unified Diff: net/quic/quic_stream_sequencer.cc

Issue 1983183002: Landing Recent QUIC changes until 5/14/2016 02:25:25 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "first try to fix link error for win_clang build" Created 4 years, 7 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 | « net/quic/quic_spdy_stream_test.cc ('k') | net/quic/quic_stream_sequencer_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_stream_sequencer.cc
diff --git a/net/quic/quic_stream_sequencer.cc b/net/quic/quic_stream_sequencer.cc
index 36a34abf59f0d2cedc1767b0bb52d34eae464dfd..da26cc52fa9d4ad6470b7e6a531031a8c6563c8c 100644
--- a/net/quic/quic_stream_sequencer.cc
+++ b/net/quic/quic_stream_sequencer.cc
@@ -10,6 +10,7 @@
#include <utility>
#include "base/logging.h"
+#include "base/strings/string_number_conversions.h"
#include "net/quic/quic_bug_tracker.h"
#include "net/quic/quic_clock.h"
#include "net/quic/quic_flags.h"
@@ -56,9 +57,13 @@ void QuicStreamSequencer::OnStreamFrame(const QuicStreamFrame& frame) {
byte_offset, StringPiece(frame.data_buffer, frame.data_length),
clock_->ApproximateNow(), &bytes_written, &error_details);
if (result != QUIC_NO_ERROR) {
+ string details = "Stream" + base::Uint64ToString(stream_->id()) + ": " +
+ QuicUtils::ErrorToString(result) + ": " + error_details +
+ "\nPeer Address: " +
+ stream_->PeerAddressOfLatestPacket().ToString();
DLOG(WARNING) << QuicUtils::ErrorToString(result);
- DLOG(WARNING) << error_details;
- stream_->CloseConnectionWithDetails(result, error_details);
+ DLOG(WARNING) << details;
+ stream_->CloseConnectionWithDetails(result, details);
return;
}
« no previous file with comments | « net/quic/quic_spdy_stream_test.cc ('k') | net/quic/quic_stream_sequencer_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698