mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 05:33:52 -06: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
@ -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…
Reference in New Issue
Block a user