diff src/os/unix/ngx_recv.c @ 5370:ee78c7705a8e

Fixed handling of the ready flag with kqueue. There is nothing to do more when recv() has returned 0, so we should drop the flag.
author Valentin Bartenev <vbart@nginx.com>
date Thu, 05 Sep 2013 16:53:02 +0400
parents 13c006f0c40e
children f01ab2dbcfdc
line wrap: on
line diff
--- a/src/os/unix/ngx_recv.c
+++ b/src/os/unix/ngx_recv.c
@@ -80,6 +80,7 @@ ngx_unix_recv(ngx_connection_t *c, u_cha
                      * even if kqueue reported about available data
                      */
 
+                    rev->ready = 0;
                     rev->eof = 1;
                     rev->available = 0;
                 }