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:
Ruslan Ermilov 2016-04-08 16:49:35 +03:00
parent dbabc66b68
commit 4d1f67fd91
2 changed files with 2 additions and 6 deletions

View File

@ -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;

View File

@ -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;