]> git.kaiwu.me - nginx.git/commit
SPDY: detect premature closing of stream.
authorValentin Bartenev <vbart@nginx.com>
Fri, 28 Mar 2014 16:22:57 +0000 (20:22 +0400)
committerValentin Bartenev <vbart@nginx.com>
Fri, 28 Mar 2014 16:22:57 +0000 (20:22 +0400)
commitac5a3cbeee718850a8eba8b601d8827d649de201
tree96dcfd1c760d038c1f042a4e8fb5155ff067cb2e
parentafb92a8127d30e7c4ff6387a9b9761924b134940
SPDY: detect premature closing of stream.

The SPDY/3.1 specification requires that the server must respond with
a 400 "Bad request" error if the sum of the data frame payload lengths
does not equal the size of the Content-Length header.

This also fixes "zero size buf in output" alert, that might be triggered
if client sends a greater than zero Content-Length header and closes
stream using the FIN flag with an empty request body.
src/http/ngx_http_spdy.c