aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_recv.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2013-07-13 03:24:30 +0400
committerValentin Bartenev <vbart@nginx.com>2013-07-13 03:24:30 +0400
commit615d55884376040fc2b42d9f47f981cd700b384a (patch)
tree58267bfbfcee2de0e4a8b344a8753a929eefdce2 /src/os/unix/ngx_recv.c
parentd10251030ae4553e5f5338b267750f63cd05d1b3 (diff)
downloadnginx-615d55884376040fc2b42d9f47f981cd700b384a.tar.gz
nginx-615d55884376040fc2b42d9f47f981cd700b384a.zip
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.
Diffstat (limited to 'src/os/unix/ngx_recv.c')
-rw-r--r--src/os/unix/ngx_recv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/os/unix/ngx_recv.c b/src/os/unix/ngx_recv.c
index 6a4a09966..1640cdb27 100644
--- a/src/os/unix/ngx_recv.c
+++ b/src/os/unix/ngx_recv.c
@@ -87,7 +87,9 @@ ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size)
return n;
}
- if ((size_t) n < size) {
+ if ((size_t) n < size
+ && !(ngx_event_flags & NGX_USE_GREEDY_EVENT))
+ {
rev->ready = 0;
}