mirror of
https://github.com/nginx/nginx.git
synced 2026-10-24 04:52:25 +00:00
SPDY: fixed possible premature close of stream.
The "delayed" flag always should be set if there are unsent frames, but this might not be the case if ngx_http_spdy_body_filter() was called with NULL chain. As a result, the "send_timeout" timer could be set on a stream in ngx_http_writer(). And if the timeout occurred before all the stream data has been sent, then the request was finalized with the "client timed out" error.
This commit is contained in:
parent
1c56e18733
commit
3d5f501adc
1 changed files with 1 additions and 0 deletions
|
|
@ -635,6 +635,7 @@ ngx_http_spdy_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
|
|||
if (in == NULL || r->header_only) {
|
||||
|
||||
if (stream->queued) {
|
||||
fc->write->delayed = 1;
|
||||
return NGX_AGAIN;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue