diff options
author | Valentin Bartenev <vbart@nginx.com> | 2014-05-15 19:18:26 +0400 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2014-05-15 19:18:26 +0400 |
commit | 63ee6907515e0637665e04944a1c1d1f15e19635 (patch) | |
tree | 4b4d5704f4f980478f2875211d220e51777830bc /src | |
parent | dfb9a5cb0d76649afcf6acbbb971c3466b17bfbb (diff) | |
download | nginx-63ee6907515e0637665e04944a1c1d1f15e19635.tar.gz nginx-63ee6907515e0637665e04944a1c1d1f15e19635.zip |
SPDY: prevented creation of RST_STREAM in protocol error state.
Previously, the frame wasn't sent anyway (and had a wrong status code).
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_spdy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_spdy.c b/src/http/ngx_http_spdy.c index 159d8eb9d..8de020342 100644 --- a/src/http/ngx_http_spdy.c +++ b/src/http/ngx_http_spdy.c @@ -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); } |