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

Unified Diff: net/quic/reliable_quic_stream.cc

Issue 47283002: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation error Created 7 years, 2 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/reliable_quic_stream.h ('k') | net/quic/test_tools/crypto_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/reliable_quic_stream.cc
diff --git a/net/quic/reliable_quic_stream.cc b/net/quic/reliable_quic_stream.cc
index 0ac6ecd4885d00a1e9055301ffa505b62eab5232..afba1f00082cc187c47c7a915c0b5c3185da9592 100644
--- a/net/quic/reliable_quic_stream.cc
+++ b/net/quic/reliable_quic_stream.cc
@@ -61,7 +61,8 @@ ReliableQuicStream::ReliableQuicStream(QuicStreamId id,
write_side_closed_(false),
priority_parsed_(false),
fin_buffered_(false),
- fin_sent_(false) {
+ fin_sent_(false),
+ is_server_(session_->is_server()) {
}
ReliableQuicStream::~ReliableQuicStream() {
@@ -82,7 +83,7 @@ bool ReliableQuicStream::WillAcceptStreamFrame(
bool ReliableQuicStream::OnStreamFrame(const QuicStreamFrame& frame) {
DCHECK_EQ(frame.stream_id, id_);
if (read_side_closed_) {
- DLOG(INFO) << "Ignoring frame " << frame.stream_id;
+ DLOG(INFO) << ENDPOINT << "Ignoring frame " << frame.stream_id;
// We don't want to be reading: blackhole the data.
return true;
}
@@ -261,7 +262,7 @@ QuicConsumedData ReliableQuicStream::WritevDataInternal(const struct iovec* iov,
int iov_count,
bool fin) {
if (write_side_closed_) {
- DLOG(ERROR) << "Attempt to write when the write side is closed";
+ DLOG(ERROR) << ENDPOINT << "Attempt to write when the write side is closed";
return QuicConsumedData(0, false);
}
@@ -293,11 +294,11 @@ void ReliableQuicStream::CloseReadSide() {
if (read_side_closed_) {
return;
}
- DLOG(INFO) << "Done reading from stream " << id();
+ DLOG(INFO) << ENDPOINT << "Done reading from stream " << id();
read_side_closed_ = true;
if (write_side_closed_) {
- DLOG(INFO) << "Closing stream: " << id();
+ DLOG(INFO) << ENDPOINT << "Closing stream: " << id();
session_->CloseStream(id());
}
}
@@ -338,7 +339,8 @@ uint32 ReliableQuicStream::ProcessRawData(const char* data, uint32 data_len) {
// Ensure that this header id looks sane.
if (headers_id_ < current_header_id ||
headers_id_ > kMaxHeaderIdDelta + current_header_id) {
- DVLOG(1) << "Invalid headers for stream: " << id()
+ DVLOG(1) << ENDPOINT
+ << "Invalid headers for stream: " << id()
<< " header_id: " << headers_id_
<< " current_header_id: " << current_header_id;
session_->connection()->SendConnectionClose(QUIC_INVALID_HEADER_ID);
@@ -348,7 +350,8 @@ uint32 ReliableQuicStream::ProcessRawData(const char* data, uint32 data_len) {
// If we are head-of-line blocked on decompression, then back up.
if (current_header_id != headers_id_) {
session_->MarkDecompressionBlocked(headers_id_, id());
- DVLOG(1) << "Unable to decompress header data for stream: " << id()
+ DVLOG(1) << ENDPOINT
+ << "Unable to decompress header data for stream: " << id()
<< " header_id: " << headers_id_;
return total_bytes_consumed;
}
@@ -463,11 +466,11 @@ void ReliableQuicStream::CloseWriteSide() {
if (write_side_closed_) {
return;
}
- DLOG(INFO) << "Done writing to stream " << id();
+ DLOG(INFO) << ENDPOINT << "Done writing to stream " << id();
write_side_closed_ = true;
if (read_side_closed_) {
- DLOG(INFO) << "Closing stream: " << id();
+ DLOG(INFO) << ENDPOINT << "Closing stream: " << id();
session_->CloseStream(id());
}
}
« no previous file with comments | « net/quic/reliable_quic_stream.h ('k') | net/quic/test_tools/crypto_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698