Mercurial > hg > nginx
comparison src/os/unix/ngx_readv_chain.c @ 6508:151fd02a4317
Simplified ngx_unix_recv() and ngx_readv_chain().
This makes ngx_unix_recv() and ngx_udp_unix_recv() differ minimally.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 08 Apr 2016 16:49:35 +0300 |
parents | dc1ae0056a1e |
children | f7849bfb6d21 |
comparison
equal
deleted
inserted
replaced
6507:8ee94ecd3a50 | 6508:151fd02a4317 |
---|---|
141 if (rev->available <= 0) { | 141 if (rev->available <= 0) { |
142 if (!rev->pending_eof) { | 142 if (!rev->pending_eof) { |
143 rev->ready = 0; | 143 rev->ready = 0; |
144 } | 144 } |
145 | 145 |
146 if (rev->available < 0) { | 146 rev->available = 0; |
147 rev->available = 0; | |
148 } | |
149 } | 147 } |
150 | 148 |
151 return n; | 149 return n; |
152 } | 150 } |
153 | 151 |