mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 13:43:28 -06:00
SPDY: drop the "delayed" flag when finalizing connection.
This flag in SPDY fake write events serves the same purposes as the "ready" flag in real events, and it must be dropped if request needs to be handled. Otherwise, it can prevent the request from finalization if ngx_http_writer() was set, which results in a connection leak. Found by Xiaochen Wang.
This commit is contained in:
parent
fa512fdb76
commit
7f54528ca0
@ -2855,7 +2855,9 @@ ngx_http_spdy_finalize_connection(ngx_http_spdy_connection_t *sc,
|
||||
if (stream->waiting) {
|
||||
r->blocked -= stream->waiting;
|
||||
stream->waiting = 0;
|
||||
|
||||
ev = fc->write;
|
||||
ev->delayed = 0;
|
||||
|
||||
} else {
|
||||
ev = fc->read;
|
||||
|
Loading…
Reference in New Issue
Block a user