diff src/os/unix/ngx_readv_chain.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 d1bde5c3c5d2
line wrap: on
line diff
--- a/src/os/unix/ngx_readv_chain.c
+++ b/src/os/unix/ngx_readv_chain.c
@@ -129,6 +129,7 @@ ngx_readv_chain(ngx_connection_t *c, ngx
                                   "%d available bytes", rev->available);
 #endif
 
+                    rev->ready = 0;
                     rev->eof = 1;
                     rev->available = 0;
                 }