Mercurial > hg > nginx
comparison src/os/win32/ngx_wsasend_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 | 35b8e5e98508 |
comparison
equal
deleted
inserted
replaced
5852:43512a33e8f2 | 5853:a6e83ac70af9 |
---|---|
111 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0, | 111 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0, |
112 "WSASend: fd:%d, s:%ul", c->fd, sent); | 112 "WSASend: fd:%d, s:%ul", c->fd, sent); |
113 | 113 |
114 c->sent += sent; | 114 c->sent += sent; |
115 | 115 |
116 cl = ngx_handle_sent_chain(in, sent); | 116 in = ngx_handle_sent_chain(in, sent); |
117 | 117 |
118 if (send - prev_send != sent) { | 118 if (send - prev_send != sent) { |
119 wev->ready = 0; | 119 wev->ready = 0; |
120 return cl; | 120 return in; |
121 } | 121 } |
122 | 122 |
123 if (send >= limit || cl == NULL) { | 123 if (send >= limit || in == NULL) { |
124 return cl; | 124 return in; |
125 } | 125 } |
126 | |
127 in = cl; | |
128 } | 126 } |
129 } | 127 } |
130 | 128 |
131 | 129 |
132 ngx_chain_t * | 130 ngx_chain_t * |
278 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0, | 276 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0, |
279 "WSASend ovlp: fd:%d, s:%ul", c->fd, sent); | 277 "WSASend ovlp: fd:%d, s:%ul", c->fd, sent); |
280 | 278 |
281 c->sent += sent; | 279 c->sent += sent; |
282 | 280 |
283 cl = ngx_handle_sent_chain(in, sent); | 281 in = ngx_handle_sent_chain(in, sent); |
284 | 282 |
285 if (cl) { | 283 if (in) { |
286 wev->ready = 0; | 284 wev->ready = 0; |
287 | 285 |
288 } else { | 286 } else { |
289 wev->ready = 1; | 287 wev->ready = 1; |
290 } | 288 } |
291 | 289 |
292 return cl; | 290 return in; |
293 } | 291 } |