comparison src/http/ngx_http_write_filter.c @ 75:869b10be682f

nginx-0.0.1-2003-04-14-21:04:58 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 14 Apr 2003 17:04:58 +0000
parents 59229033ae93
children 57c2e18d3572
comparison
equal deleted inserted replaced
74:17ab1af8c3dd 75:869b10be682f
120 conf = (ngx_http_write_filter_conf_t *) 120 conf = (ngx_http_write_filter_conf_t *)
121 ngx_http_get_module_loc_conf(r->main ? r->main : r, 121 ngx_http_get_module_loc_conf(r->main ? r->main : r,
122 ngx_http_write_filter_module_ctx); 122 ngx_http_write_filter_module_ctx);
123 123
124 #if (NGX_DEBUG_WRITE_FILTER) 124 #if (NGX_DEBUG_WRITE_FILTER)
125 ngx_log_debug(r->connection->log, "write filter: last:%d flush:%d" _ 125 ngx_log_debug(r->connection->log,
126 last _ flush); 126 "write filter: last:%d flush:%qd size:%qd" _
127 last _ flush _ size);
127 #endif 128 #endif
128 129
129 /* avoid the output if there is no last hunk, no flush point and 130 /* avoid the output if there is no last hunk, no flush point and
130 size of the hunks is smaller then "buffer_output" */ 131 size of the hunks is smaller then "buffer_output" */
131 132
162 ngx_palloc(pool, sizeof(ngx_http_write_filter_conf_t)), 163 ngx_palloc(pool, sizeof(ngx_http_write_filter_conf_t)),
163 NULL); 164 NULL);
164 165
165 conf->buffer_output = NGX_CONF_UNSET; 166 conf->buffer_output = NGX_CONF_UNSET;
166 167
168 ngx_log_debug(pool->log, "write conf %08X %08X" _ conf _ conf->buffer_output);
169
167 return conf; 170 return conf;
168 } 171 }
169 172
170 173
171 static char *ngx_http_write_filter_merge_conf(ngx_pool_t *pool, 174 static char *ngx_http_write_filter_merge_conf(ngx_pool_t *pool,
176 ngx_http_write_filter_conf_t *conf = 179 ngx_http_write_filter_conf_t *conf =
177 (ngx_http_write_filter_conf_t *) child; 180 (ngx_http_write_filter_conf_t *) child;
178 181
179 ngx_conf_size_merge(conf->buffer_output, prev->buffer_output, 1460); 182 ngx_conf_size_merge(conf->buffer_output, prev->buffer_output, 1460);
180 183
184 ngx_log_debug(pool->log, "write merge %08X %08X %08X" _ prev _ conf _ conf->buffer_output);
185
181 return NULL; 186 return NULL;
182 } 187 }
183 188
184 189
185 static int ngx_http_write_filter_init(ngx_pool_t *pool) 190 static int ngx_http_write_filter_init(ngx_pool_t *pool)