comparison src/os/unix/ngx_writev_chain.c @ 94:8220378432a8

nginx-0.0.1-2003-05-22-19:23:47 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 22 May 2003 15:23:47 +0000
parents 738fe44c70d5
children 6dfda4cf5200
comparison
equal deleted inserted replaced
93:738fe44c70d5 94:8220378432a8
60 60
61 for (ce = in; ce && sent > 0; ce = ce->next) { 61 for (ce = in; ce && sent > 0; ce = ce->next) {
62 62
63 size = ce->hunk->last - ce->hunk->pos; 63 size = ce->hunk->last - ce->hunk->pos;
64 64
65 ngx_log_debug(c->log, "SIZE: %d" _ size);
66
65 if (sent >= size) { 67 if (sent >= size) {
66 sent -= size; 68 sent -= size;
67 69
68 if (ce->hunk->type & NGX_HUNK_IN_MEMORY) { 70 if (ce->hunk->type & NGX_HUNK_IN_MEMORY) {
69 ce->hunk->pos = ce->hunk->last; 71 ce->hunk->pos = ce->hunk->last;
70 } 72 }
71 73
74 #if 0
72 if (ce->hunk->type & NGX_HUNK_FILE) { 75 if (ce->hunk->type & NGX_HUNK_FILE) {
73 ce->hunk->file_pos = ce->hunk->file_last; 76 ce->hunk->file_pos = ce->hunk->file_last;
74 } 77 }
78 #endif
75 79
76 continue; 80 continue;
77 } 81 }
78 82
79 if (ce->hunk->type & NGX_HUNK_IN_MEMORY) { 83 if (ce->hunk->type & NGX_HUNK_IN_MEMORY) {
80 ce->hunk->pos += sent; 84 ce->hunk->pos += sent;
81 } 85 }
82 86
87 #if 0
83 if (ce->hunk->type & NGX_HUNK_FILE) { 88 if (ce->hunk->type & NGX_HUNK_FILE) {
84 ce->hunk->file_pos += sent; 89 ce->hunk->file_pos += sent;
85 } 90 }
91 #endif
86 92
87 break; 93 break;
88 } 94 }
89 95
90 ngx_destroy_array(&io); 96 ngx_destroy_array(&io);