diff options
author | Valentin Bartenev <vbart@nginx.com> | 2013-09-05 16:53:02 +0400 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2013-09-05 16:53:02 +0400 |
commit | cf08ba72dba20f49ef71ce394511734f5eddbd61 (patch) | |
tree | 5cfce8bd3390d4416c581c24654cace5636b6026 /src/os/unix/ngx_recv.c | |
parent | d034e63a11539c84ba9fe6fcb23049d1dac44e48 (diff) | |
download | nginx-cf08ba72dba20f49ef71ce394511734f5eddbd61.tar.gz nginx-cf08ba72dba20f49ef71ce394511734f5eddbd61.zip |
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.
Diffstat (limited to 'src/os/unix/ngx_recv.c')
-rw-r--r-- | src/os/unix/ngx_recv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os/unix/ngx_recv.c b/src/os/unix/ngx_recv.c index 1640cdb27..86675dfdd 100644 --- 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_char *buf, size_t size) * even if kqueue reported about available data */ + rev->ready = 0; rev->eof = 1; rev->available = 0; } |