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

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

Issue 1979193012: Add more information to QUIC close connection detail about QUIC_OVERLAPPING_STREAM_DATA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@121905158
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « net/quic/reliable_quic_stream.h ('k') | 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/reliable_quic_stream.h" 5 #include "net/quic/reliable_quic_stream.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/quic/iovector.h" 8 #include "net/quic/iovector.h"
9 #include "net/quic/quic_bug_tracker.h" 9 #include "net/quic/quic_bug_tracker.h"
10 #include "net/quic/quic_flags.h" 10 #include "net/quic/quic_flags.h"
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 371
372 QuicVersion ReliableQuicStream::version() const { 372 QuicVersion ReliableQuicStream::version() const {
373 return session_->connection()->version(); 373 return session_->connection()->version();
374 } 374 }
375 375
376 void ReliableQuicStream::StopReading() { 376 void ReliableQuicStream::StopReading() {
377 DVLOG(1) << ENDPOINT << "Stop reading from stream " << id(); 377 DVLOG(1) << ENDPOINT << "Stop reading from stream " << id();
378 sequencer_.StopReading(); 378 sequencer_.StopReading();
379 } 379 }
380 380
381 const IPEndPoint& ReliableQuicStream::PeerAddressOfLatestPacket() const {
382 return session_->connection()->last_packet_source_address();
383 }
384
381 void ReliableQuicStream::OnClose() { 385 void ReliableQuicStream::OnClose() {
382 CloseReadSide(); 386 CloseReadSide();
383 CloseWriteSide(); 387 CloseWriteSide();
384 388
385 if (!fin_sent_ && !rst_sent_) { 389 if (!fin_sent_ && !rst_sent_) {
386 // For flow control accounting, tell the peer how many bytes have been 390 // For flow control accounting, tell the peer how many bytes have been
387 // written on this stream before termination. Done here if needed, using a 391 // written on this stream before termination. Done here if needed, using a
388 // RST_STREAM frame. 392 // RST_STREAM frame.
389 DVLOG(1) << ENDPOINT << "Sending RST_STREAM in OnClose: " << id(); 393 DVLOG(1) << ENDPOINT << "Sending RST_STREAM in OnClose: " << id();
390 session_->SendRstStream(id(), QUIC_RST_ACKNOWLEDGEMENT, 394 session_->SendRstStream(id(), QUIC_RST_ACKNOWLEDGEMENT,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 } 455 }
452 } 456 }
453 457
454 void ReliableQuicStream::UpdateSendWindowOffset(QuicStreamOffset new_window) { 458 void ReliableQuicStream::UpdateSendWindowOffset(QuicStreamOffset new_window) {
455 if (flow_controller_.UpdateSendWindowOffset(new_window)) { 459 if (flow_controller_.UpdateSendWindowOffset(new_window)) {
456 OnCanWrite(); 460 OnCanWrite();
457 } 461 }
458 } 462 }
459 463
460 } // namespace net 464 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/reliable_quic_stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698