comparison src/os/unix/ngx_recv.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 d620f497c50f
children ee78c7705a8e
comparison
equal deleted inserted replaced
5266:8e7db77e5d88 5267:13c006f0c40e
85 } 85 }
86 86
87 return n; 87 return n;
88 } 88 }
89 89
90 if ((size_t) n < size) { 90 if ((size_t) n < size
91 && !(ngx_event_flags & NGX_USE_GREEDY_EVENT))
92 {
91 rev->ready = 0; 93 rev->ready = 0;
92 } 94 }
93 95
94 if (n == 0) { 96 if (n == 0) {
95 rev->eof = 1; 97 rev->eof = 1;