mirror of
https://github.com/nginx/nginx.git
synced 2026-05-28 04:12:47 -04:00
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.
This commit is contained in:
parent
d034e63a11
commit
cf08ba72db
2 changed files with 2 additions and 0 deletions
|
|
@ -129,6 +129,7 @@ ngx_readv_chain(ngx_connection_t *c, ngx_chain_t *chain)
|
|||
"%d available bytes", rev->available);
|
||||
#endif
|
||||
|
||||
rev->ready = 0;
|
||||
rev->eof = 1;
|
||||
rev->available = 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue