comparison 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
comparison
equal deleted inserted replaced
5369:907f01a2a7c0 5370:ee78c7705a8e
127 ngx_log_error(NGX_LOG_ALERT, c->log, 0, 127 ngx_log_error(NGX_LOG_ALERT, c->log, 0,
128 "readv() returned 0 while kevent() reported " 128 "readv() returned 0 while kevent() reported "
129 "%d available bytes", rev->available); 129 "%d available bytes", rev->available);
130 #endif 130 #endif
131 131
132 rev->ready = 0;
132 rev->eof = 1; 133 rev->eof = 1;
133 rev->available = 0; 134 rev->available = 0;
134 } 135 }
135 136
136 return n; 137 return n;