mirror of
https://github.com/nginx/nginx.git
synced 2026-10-22 12:01:09 +00:00
Simplified ngx_unix_recv() and ngx_readv_chain().
This makes ngx_unix_recv() and ngx_udp_unix_recv() differ minimally.
This commit is contained in:
parent
dbabc66b68
commit
4d1f67fd91
2 changed files with 2 additions and 6 deletions
|
|
@ -143,9 +143,7 @@ ngx_readv_chain(ngx_connection_t *c, ngx_chain_t *chain, off_t limit)
|
|||
rev->ready = 0;
|
||||
}
|
||||
|
||||
if (rev->available < 0) {
|
||||
rev->available = 0;
|
||||
}
|
||||
rev->available = 0;
|
||||
}
|
||||
|
||||
return n;
|
||||
|
|
|
|||
|
|
@ -93,9 +93,7 @@ ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size)
|
|||
rev->ready = 0;
|
||||
}
|
||||
|
||||
if (rev->available < 0) {
|
||||
rev->available = 0;
|
||||
}
|
||||
rev->available = 0;
|
||||
}
|
||||
|
||||
return n;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue