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

Side by Side Diff: net/quic/core/quic_client_session_base.cc

Issue 2546843002: deprecate FLAGS_quic_bugfix_reset_promised. (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 | net/quic/core/quic_flags_list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/core/quic_client_session_base.h" 5 #include "net/quic/core/quic_client_session_base.h"
6 6
7 #include "net/quic/core/quic_client_promised_info.h" 7 #include "net/quic/core/quic_client_promised_info.h"
8 #include "net/quic/core/quic_flags.h" 8 #include "net/quic/core/quic_flags.h"
9 #include "net/quic/core/spdy_utils.h" 9 #include "net/quic/core/spdy_utils.h"
10 10
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 headers_stream()->MaybeReleaseSequencerBuffer(); 159 headers_stream()->MaybeReleaseSequencerBuffer();
160 } 160 }
161 161
162 void QuicClientSessionBase::OnPushStreamTimedOut(QuicStreamId stream_id) {} 162 void QuicClientSessionBase::OnPushStreamTimedOut(QuicStreamId stream_id) {}
163 163
164 void QuicClientSessionBase::ResetPromised(QuicStreamId id, 164 void QuicClientSessionBase::ResetPromised(QuicStreamId id,
165 QuicRstStreamErrorCode error_code) { 165 QuicRstStreamErrorCode error_code) {
166 SendRstStream(id, error_code, 0); 166 SendRstStream(id, error_code, 0);
167 if (!IsOpenStream(id)) { 167 if (!IsOpenStream(id)) {
168 MaybeIncreaseLargestPeerStreamId(id); 168 MaybeIncreaseLargestPeerStreamId(id);
169 if (!FLAGS_quic_bugfix_reset_promised) {
170 InsertLocallyClosedStreamsHighestOffset(id, 0);
171 }
172 } 169 }
173 } 170 }
174 171
175 void QuicClientSessionBase::CloseStreamInner(QuicStreamId stream_id, 172 void QuicClientSessionBase::CloseStreamInner(QuicStreamId stream_id,
176 bool locally_reset) { 173 bool locally_reset) {
177 QuicSpdySession::CloseStreamInner(stream_id, locally_reset); 174 QuicSpdySession::CloseStreamInner(stream_id, locally_reset);
178 headers_stream()->MaybeReleaseSequencerBuffer(); 175 headers_stream()->MaybeReleaseSequencerBuffer();
179 } 176 }
180 177
181 bool QuicClientSessionBase::ShouldReleaseHeadersStreamSequencerBuffer() { 178 bool QuicClientSessionBase::ShouldReleaseHeadersStreamSequencerBuffer() {
182 return num_active_requests() == 0 && promised_by_id_.empty(); 179 return num_active_requests() == 0 && promised_by_id_.empty();
183 } 180 }
184 181
185 } // namespace net 182 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/core/quic_flags_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698