Mercurial > hg > nginx
comparison src/os/unix/ngx_writev_chain.c @ 5853:a6e83ac70af9
Reduced difference between the send chain functions.
No functional changes. This follows the change from ad137a80919f.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Wed, 13 Aug 2014 15:11:45 +0400 |
parents | 150df089fe47 |
children | b63e829621ab |
comparison
equal
deleted
inserted
replaced
5852:43512a33e8f2 | 5853:a6e83ac70af9 |
---|---|
136 | 136 |
137 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "writev: %z", sent); | 137 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "writev: %z", sent); |
138 | 138 |
139 c->sent += sent; | 139 c->sent += sent; |
140 | 140 |
141 cl = ngx_handle_sent_chain(in, sent); | 141 in = ngx_handle_sent_chain(in, sent); |
142 | 142 |
143 if (eintr) { | 143 if (eintr) { |
144 continue; | 144 continue; |
145 } | 145 } |
146 | 146 |
147 if (send - prev_send != sent) { | 147 if (send - prev_send != sent) { |
148 wev->ready = 0; | 148 wev->ready = 0; |
149 return cl; | 149 return in; |
150 } | 150 } |
151 | 151 |
152 if (send >= limit || cl == NULL) { | 152 if (send >= limit || in == NULL) { |
153 return cl; | 153 return in; |
154 } | 154 } |
155 | |
156 in = cl; | |
157 } | 155 } |
158 } | 156 } |