comparison src/http/ngx_http_spdy.c @ 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
comparison
equal deleted inserted replaced
5687:6642690698f1 5688:86232c95623d
1930 { 1930 {
1931 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, sc->connection->log, 0, 1931 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, sc->connection->log, 0,
1932 "spdy state protocol error"); 1932 "spdy state protocol error");
1933 1933
1934 if (sc->stream) { 1934 if (sc->stream) {
1935 sc->stream->out_closed = 1;
1935 ngx_http_spdy_close_stream(sc->stream, NGX_HTTP_BAD_REQUEST); 1936 ngx_http_spdy_close_stream(sc->stream, NGX_HTTP_BAD_REQUEST);
1936 } 1937 }
1937 1938
1938 ngx_http_spdy_finalize_connection(sc, NGX_HTTP_CLIENT_CLOSED_REQUEST); 1939 ngx_http_spdy_finalize_connection(sc, NGX_HTTP_CLIENT_CLOSED_REQUEST);
1939 1940