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

Unified Diff: net/quic/quic_spdy_stream.cc

Issue 1541263002: Landing Recent QUIC changes until 12/18/2015 13:57 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: replace -1 with 0xff for InvalidPathId Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/quic_spdy_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_spdy_stream.cc
diff --git a/net/quic/quic_spdy_stream.cc b/net/quic/quic_spdy_stream.cc
index a3f2fb0b41e690bc3adf1c7f4bf64b441f3e69bd..4f9677738a5a18f5ea843d466f165d9ab3477f76 100644
--- a/net/quic/quic_spdy_stream.cc
+++ b/net/quic/quic_spdy_stream.cc
@@ -195,12 +195,14 @@ void QuicSpdyStream::OnTrailingHeadersComplete(bool fin, size_t /*frame_len*/) {
DCHECK(!trailers_decompressed_);
if (fin_received()) {
DLOG(ERROR) << "Received Trailers after FIN, on stream: " << id();
- session()->CloseConnection(QUIC_INVALID_HEADERS_STREAM_DATA);
+ session()->CloseConnectionWithDetails(QUIC_INVALID_HEADERS_STREAM_DATA,
+ "Trailers after fin");
return;
}
if (!fin) {
DLOG(ERROR) << "Trailers must have FIN set, on stream: " << id();
- session()->CloseConnection(QUIC_INVALID_HEADERS_STREAM_DATA);
+ session()->CloseConnectionWithDetails(QUIC_INVALID_HEADERS_STREAM_DATA,
+ "Fin missing from trailers");
return;
}
trailers_decompressed_ = true;
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/quic_spdy_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698