comparison src/os/win32/ngx_wsasend_chain.c @ 257:70e1c7d2b83d

nginx-0.0.2-2004-02-11-20:08:49 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 11 Feb 2004 17:08:49 +0000
parents 1bf718ce0dde
children 0ba4821f4460
comparison
equal deleted inserted replaced
256:8e39cab6abd5 257:70e1c7d2b83d
62 ngx_log_error(NGX_LOG_CRIT, c->log, err, "WSASend() failed"); 62 ngx_log_error(NGX_LOG_CRIT, c->log, err, "WSASend() failed");
63 return NGX_CHAIN_ERROR; 63 return NGX_CHAIN_ERROR;
64 } 64 }
65 } 65 }
66 66
67 #if (NGX_DEBUG_WRITE_CHAIN) 67 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "WSASend(): %d", sent);
68 ngx_log_debug(c->log, "WSASend(): %d" _ sent);
69 #endif
70 68
71 c->sent += sent; 69 c->sent += sent;
72 70
73 for (cl = in; cl && sent > 0; cl = cl->next) { 71 for (cl = in; cl && sent > 0; cl = cl->next) {
74 72
205 return NGX_CHAIN_ERROR; 203 return NGX_CHAIN_ERROR;
206 } 204 }
207 } 205 }
208 } 206 }
209 207
210 #if (NGX_DEBUG_WRITE_CHAIN) 208 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "WSASend(): %d", sent);
211 ngx_log_debug(c->log, "WSASend(): %d" _ sent);
212 #endif
213 209
214 c->sent += sent; 210 c->sent += sent;
215 211
216 for (cl = in; cl && sent > 0; cl = cl->next) { 212 for (cl = in; cl && sent > 0; cl = cl->next) {
217 213
389 385
390 sent = wev->available; 386 sent = wev->available;
391 } 387 }
392 } 388 }
393 389
394 #if (NGX_DEBUG_WRITE_CHAIN)
395 ngx_log_debug(c->log, "WSASend(): %d" _ sent); 390 ngx_log_debug(c->log, "WSASend(): %d" _ sent);
396 #endif
397 391
398 c->sent += sent; 392 c->sent += sent;
399 393
400 for (ce = in; ce && sent > 0; ce = ce->next) { 394 for (ce = in; ce && sent > 0; ce = ce->next) {
401 395