diff options
author | Valentin Bartenev <vbart@nginx.com> | 2014-09-01 18:20:18 +0400 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2014-09-01 18:20:18 +0400 |
commit | 37d24e7e3be648a6f73bad18dcf53798a7a1aeb0 (patch) | |
tree | eaf9902b1117ec4a3cd905855c3e26c5825f3282 /src/http/ngx_http_spdy.c | |
parent | 2a81e0556611188a1b9b3e1240a06928dcebc1a2 (diff) | |
download | nginx-37d24e7e3be648a6f73bad18dcf53798a7a1aeb0.tar.gz nginx-37d24e7e3be648a6f73bad18dcf53798a7a1aeb0.zip |
Events: processing of posted events changed from LIFO to FIFO.
In theory, this can provide a bit better distribution of latencies.
Also it simplifies the code, since ngx_queue_t is now used instead
of custom implementation.
Diffstat (limited to 'src/http/ngx_http_spdy.c')
-rw-r--r-- | src/http/ngx_http_spdy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_spdy.c b/src/http/ngx_http_spdy.c index 478036979..3c57882a6 100644 --- a/src/http/ngx_http_spdy.c +++ b/src/http/ngx_http_spdy.c @@ -3372,7 +3372,7 @@ ngx_http_spdy_close_stream(ngx_http_spdy_stream_t *stream, ngx_int_t rc) ngx_del_timer(ev); } - if (ev->prev) { + if (ev->posted) { ngx_delete_posted_event(ev); } @@ -3387,7 +3387,7 @@ ngx_http_spdy_close_stream(ngx_http_spdy_stream_t *stream, ngx_int_t rc) ngx_del_timer(ev); } - if (ev->prev) { + if (ev->posted) { ngx_delete_posted_event(ev); } |