OLD | NEW |
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/quic_session.h" | 8 #include "net/quic/quic_session.h" |
9 #include "net/quic/quic_spdy_decompressor.h" | |
10 #include "net/quic/quic_write_blocked_list.h" | 9 #include "net/quic/quic_write_blocked_list.h" |
11 | 10 |
12 using base::StringPiece; | 11 using base::StringPiece; |
13 using std::min; | 12 using std::min; |
14 | 13 |
15 namespace net { | 14 namespace net { |
16 | 15 |
17 #define ENDPOINT (is_server_ ? "Server: " : " Client: ") | 16 #define ENDPOINT (is_server_ ? "Server: " : " Client: ") |
18 | 17 |
19 namespace { | 18 namespace { |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 // For flow control accounting, we must tell the peer how many bytes we have | 241 // For flow control accounting, we must tell the peer how many bytes we have |
243 // written on this stream before termination. Done here if needed, using a | 242 // written on this stream before termination. Done here if needed, using a |
244 // RST frame. | 243 // RST frame. |
245 DVLOG(1) << ENDPOINT << "Sending RST in OnClose: " << id(); | 244 DVLOG(1) << ENDPOINT << "Sending RST in OnClose: " << id(); |
246 session_->SendRstStream(id(), QUIC_STREAM_NO_ERROR, stream_bytes_written_); | 245 session_->SendRstStream(id(), QUIC_STREAM_NO_ERROR, stream_bytes_written_); |
247 rst_sent_ = true; | 246 rst_sent_ = true; |
248 } | 247 } |
249 } | 248 } |
250 | 249 |
251 } // namespace net | 250 } // namespace net |
OLD | NEW |