mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08: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
@ -129,6 +129,7 @@ ngx_readv_chain(ngx_connection_t *c, ngx_chain_t *chain)
|
|||||||
"%d available bytes", rev->available);
|
"%d available bytes", rev->available);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
rev->ready = 0;
|
||||||
rev->eof = 1;
|
rev->eof = 1;
|
||||||
rev->available = 0;
|
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
|
* even if kqueue reported about available data
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
rev->ready = 0;
|
||||||
rev->eof = 1;
|
rev->eof = 1;
|
||||||
rev->available = 0;
|
rev->available = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user