mirror of
https://github.com/nginx/nginx.git
synced 2024-12-12 18:29:00 +08:00
SPDY: prevented creation of RST_STREAM in protocol error state.
Previously, the frame wasn't sent anyway (and had a wrong status code).
This commit is contained in:
parent
dfb9a5cb0d
commit
63ee690751
@ -1932,6 +1932,7 @@ ngx_http_spdy_state_protocol_error(ngx_http_spdy_connection_t *sc)
|
|||||||
"spdy state protocol error");
|
"spdy state protocol error");
|
||||||
|
|
||||||
if (sc->stream) {
|
if (sc->stream) {
|
||||||
|
sc->stream->out_closed = 1;
|
||||||
ngx_http_spdy_close_stream(sc->stream, NGX_HTTP_BAD_REQUEST);
|
ngx_http_spdy_close_stream(sc->stream, NGX_HTTP_BAD_REQUEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user