changeset 5688:86232c95623d

SPDY: prevented creation of RST_STREAM in protocol error state. Previously, the frame wasn't sent anyway (and had a wrong status code).
author Valentin Bartenev <vbart@nginx.com>
date Thu, 15 May 2014 19:18:26 +0400
parents 6642690698f1
children 5d55f03b1e12
files src/http/ngx_http_spdy.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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_h
                    "spdy state protocol error");
 
     if (sc->stream) {
+        sc->stream->out_closed = 1;
         ngx_http_spdy_close_stream(sc->stream, NGX_HTTP_BAD_REQUEST);
     }