Mercurial > hg > nginx
comparison src/os/unix/ngx_recv.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 | 8ee94ecd3a50 |
children | f7849bfb6d21 |
comparison
equal
deleted
inserted
replaced
6507:8ee94ecd3a50 | 6508:151fd02a4317 |
---|---|
91 if (rev->available <= 0) { | 91 if (rev->available <= 0) { |
92 if (!rev->pending_eof) { | 92 if (!rev->pending_eof) { |
93 rev->ready = 0; | 93 rev->ready = 0; |
94 } | 94 } |
95 | 95 |
96 if (rev->available < 0) { | 96 rev->available = 0; |
97 rev->available = 0; | |
98 } | |
99 } | 97 } |
100 | 98 |
101 return n; | 99 return n; |
102 } | 100 } |
103 | 101 |