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

Unified Diff: net/quic/quic_http_stream.cc

Issue 2114033002: [m52] Change QuicHttpStream::OnError to look at both stream and connection errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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/quic_network_transaction_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_http_stream.cc
diff --git a/net/quic/quic_http_stream.cc b/net/quic/quic_http_stream.cc
index f31e2d0c7f3a89a7b16e70595dcd3f6580b8610f..8b0ad0135acd29f1807e17b4e67fa18f22dd0337 100644
--- a/net/quic/quic_http_stream.cc
+++ b/net/quic/quic_http_stream.cc
@@ -529,7 +529,8 @@ void QuicHttpStream::OnDataAvailable() {
}
void QuicHttpStream::OnClose(QuicErrorCode error) {
- if (error != QUIC_NO_ERROR) {
+ if (error != QUIC_NO_ERROR ||
+ stream_->stream_error() != QUIC_STREAM_NO_ERROR) {
response_status_ = was_handshake_confirmed_ ? ERR_QUIC_PROTOCOL_ERROR
: ERR_QUIC_HANDSHAKE_FAILED;
} else if (!response_headers_received_) {
« no previous file with comments | « no previous file | net/quic/quic_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698