diff options
author | Ruslan Ermilov <ru@nginx.com> | 2016-04-08 16:49:35 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2016-04-08 16:49:35 +0300 |
commit | 4d1f67fd910a183ded8b4399f81c20c2a67ac83e (patch) | |
tree | 7c82cb0fcd4a77969795004be9c6bd4091ea0f9f /src/os/unix/ngx_readv_chain.c | |
parent | dbabc66b680dfc0b2cc77dd086972f9927c23fdf (diff) | |
download | nginx-4d1f67fd910a183ded8b4399f81c20c2a67ac83e.tar.gz nginx-4d1f67fd910a183ded8b4399f81c20c2a67ac83e.zip |
Simplified ngx_unix_recv() and ngx_readv_chain().
This makes ngx_unix_recv() and ngx_udp_unix_recv() differ minimally.
Diffstat (limited to 'src/os/unix/ngx_readv_chain.c')
-rw-r--r-- | src/os/unix/ngx_readv_chain.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/os/unix/ngx_readv_chain.c b/src/os/unix/ngx_readv_chain.c index 981521f65..d23508ea7 100644 --- a/src/os/unix/ngx_readv_chain.c +++ b/src/os/unix/ngx_readv_chain.c @@ -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; |