aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2014-09-01 18:20:18 +0400
committerValentin Bartenev <vbart@nginx.com>2014-09-01 18:20:18 +0400
commit37d24e7e3be648a6f73bad18dcf53798a7a1aeb0 (patch)
treeeaf9902b1117ec4a3cd905855c3e26c5825f3282 /src/core
parent2a81e0556611188a1b9b3e1240a06928dcebc1a2 (diff)
downloadnginx-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/core')
-rw-r--r--src/core/ngx_connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c
index 7b3daf20a..b687d76b2 100644
--- a/src/core/ngx_connection.c
+++ b/src/core/ngx_connection.c
@@ -955,11 +955,11 @@ ngx_close_connection(ngx_connection_t *c)
#endif
- if (c->read->prev) {
+ if (c->read->posted) {
ngx_delete_posted_event(c->read);
}
- if (c->write->prev) {
+ if (c->write->posted) {
ngx_delete_posted_event(c->write);
}