comparison src/os/unix/ngx_readv_chain.c @ 5267:13c006f0c40e

Events: honor NGX_USE_GREEDY_EVENT when kqueue support is enabled. Currently this flag is needed for epoll and rtsig, and though these methods usually present on different platforms than kqueue, nginx can be compiled to support all of them.
author Valentin Bartenev <vbart@nginx.com>
date Sat, 13 Jul 2013 03:24:30 +0400
parents 4be36d5e78ae
children ee78c7705a8e
comparison
equal deleted inserted replaced
5266:8e7db77e5d88 5267:13c006f0c40e
134 } 134 }
135 135
136 return n; 136 return n;
137 } 137 }
138 138
139 if (n < size) { 139 if (n < size && !(ngx_event_flags & NGX_USE_GREEDY_EVENT)) {
140 rev->ready = 0; 140 rev->ready = 0;
141 } 141 }
142 142
143 if (n == 0) { 143 if (n == 0) {
144 rev->eof = 1; 144 rev->eof = 1;