comparison src/core/ngx_connection.c @ 5821:3f5f0ab59b35

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.
author Valentin Bartenev <vbart@nginx.com>
date Mon, 01 Sep 2014 18:20:18 +0400
parents 3377f9459e99
children 69c4912066a4
comparison
equal deleted inserted replaced
5820:3377f9459e99 5821:3f5f0ab59b35
953 953
954 ngx_unlock(&c->lock); 954 ngx_unlock(&c->lock);
955 955
956 #endif 956 #endif
957 957
958 if (c->read->prev) { 958 if (c->read->posted) {
959 ngx_delete_posted_event(c->read); 959 ngx_delete_posted_event(c->read);
960 } 960 }
961 961
962 if (c->write->prev) { 962 if (c->write->posted) {
963 ngx_delete_posted_event(c->write); 963 ngx_delete_posted_event(c->write);
964 } 964 }
965 965
966 c->read->closed = 1; 966 c->read->closed = 1;
967 c->write->closed = 1; 967 c->write->closed = 1;