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

Unified Diff: net/quic/core/quic_client_promised_info.cc

Issue 2412483004: relnote: Add a new RstStreamErrorCode for resetting streams due to push stream is unclaimed and tim… (Closed)
Patch Set: Created 4 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 | « no previous file | net/quic/core/quic_client_promised_info_test.cc » ('j') | net/quic/core/quic_flags_list.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_client_promised_info.cc
diff --git a/net/quic/core/quic_client_promised_info.cc b/net/quic/core/quic_client_promised_info.cc
index 8c6703884b3442969096bced6d53bf190943397c..6024bd5403e68750d2bfd431c6a31c3624c63903 100644
--- a/net/quic/core/quic_client_promised_info.cc
+++ b/net/quic/core/quic_client_promised_info.cc
@@ -25,7 +25,11 @@ QuicClientPromisedInfo::~QuicClientPromisedInfo() {}
void QuicClientPromisedInfo::CleanupAlarm::OnAlarm() {
DVLOG(1) << "self GC alarm for stream " << promised_->id_;
- promised_->Reset(QUIC_STREAM_CANCELLED);
+ if (FLAGS_quic_send_push_stream_timed_out_error) {
+ promised_->Reset(QUIC_PUSH_STREAM_TIMED_OUT);
+ } else {
+ promised_->Reset(QUIC_STREAM_CANCELLED);
+ }
}
void QuicClientPromisedInfo::Init() {
« no previous file with comments | « no previous file | net/quic/core/quic_client_promised_info_test.cc » ('j') | net/quic/core/quic_flags_list.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698