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

Unified Diff: net/spdy/spdy_stream.cc

Issue 2445113002: Add HTTP/2 error code NO_ERROR. (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
Index: net/spdy/spdy_stream.cc
diff --git a/net/spdy/spdy_stream.cc b/net/spdy/spdy_stream.cc
index 87e3aea75c973e243a7abc2e615287506d746e48..f8a36d9ab4ec80ae3f855696f041047d85936eb5 100644
--- a/net/spdy/spdy_stream.cc
+++ b/net/spdy/spdy_stream.cc
@@ -647,6 +647,13 @@ void SpdyStream::OnClose(int status) {
// In most cases, the stream should already be CLOSED. The exception is when a
// SpdySession is shutting down while the stream is in an intermediate state.
io_state_ = STATE_CLOSED;
+ if (status == ERR_SPDY_RST_STREAM_NO_ERROR_RECEIVED) {
+ if (response_headers_status_ == RESPONSE_HEADERS_ARE_INCOMPLETE) {
+ status = ERR_SPDY_PROTOCOL_ERROR;
+ } else {
+ status = OK;
+ }
+ }
response_status_ = status;
Delegate* delegate = delegate_;
delegate_ = NULL;

Powered by Google App Engine
This is Rietveld 408576698