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

Side by Side Diff: net/tools/quic/quic_spdy_server_stream_base.cc

Issue 2545893002: Remove LOG(ERROR) from QuicSpdyServerStreamBase. (Closed)
Patch Set: Created 4 years 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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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/tools/quic/quic_spdy_server_stream_base.h" 5 #include "net/tools/quic/quic_spdy_server_stream_base.h"
6 6
7 #include "net/quic/core/quic_error_codes.h" 7 #include "net/quic/core/quic_error_codes.h"
8 8
9 namespace net { 9 namespace net {
10 10
11 QuicSpdyServerStreamBase::QuicSpdyServerStreamBase(QuicStreamId id, 11 QuicSpdyServerStreamBase::QuicSpdyServerStreamBase(QuicStreamId id,
12 QuicSpdySession* session) 12 QuicSpdySession* session)
13 : QuicSpdyStream(id, session) {} 13 : QuicSpdyStream(id, session) {}
14 14
15 void QuicSpdyServerStreamBase::CloseWriteSide() { 15 void QuicSpdyServerStreamBase::CloseWriteSide() {
16 LOG(ERROR) << "CloseWriteSide()";
17 if (!fin_received() && !rst_received() && sequencer()->ignore_read_data() && 16 if (!fin_received() && !rst_received() && sequencer()->ignore_read_data() &&
18 !rst_sent()) { 17 !rst_sent()) {
19 // Early cancel the stream if it has stopped reading before receiving FIN 18 // Early cancel the stream if it has stopped reading before receiving FIN
20 // or RST. 19 // or RST.
21 DCHECK(fin_sent()); 20 DCHECK(fin_sent());
22 // Tell the peer to stop sending further data. 21 // Tell the peer to stop sending further data.
23 DVLOG(0) << " Server: Send QUIC_STREAM_NO_ERROR on stream " << id(); 22 DVLOG(0) << " Server: Send QUIC_STREAM_NO_ERROR on stream " << id();
24 Reset(QUIC_STREAM_NO_ERROR); 23 Reset(QUIC_STREAM_NO_ERROR);
25 } 24 }
26 25
27 QuicSpdyStream::CloseWriteSide(); 26 QuicSpdyStream::CloseWriteSide();
28 } 27 }
29 28
30 } // namespace net 29 } // 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