]> git.kaiwu.me - nginx.git/commitdiff
SPDY: prevented creation of RST_STREAM in protocol error state.
authorValentin Bartenev <vbart@nginx.com>
Thu, 15 May 2014 15:18:26 +0000 (19:18 +0400)
committerValentin Bartenev <vbart@nginx.com>
Thu, 15 May 2014 15:18:26 +0000 (19:18 +0400)
Previously, the frame wasn't sent anyway (and had a wrong status code).

src/http/ngx_http_spdy.c

index 159d8eb9df9411189764683d892e9f989ec08498..8de020342f6fe0fc08a1f1a42e5c465c528329a7 100644 (file)
@@ -1932,6 +1932,7 @@ ngx_http_spdy_state_protocol_error(ngx_http_spdy_connection_t *sc)
                    "spdy state protocol error");
 
     if (sc->stream) {
+        sc->stream->out_closed = 1;
         ngx_http_spdy_close_stream(sc->stream, NGX_HTTP_BAD_REQUEST);
     }