comparison src/http/modules/ngx_http_ssi_filter_module.c @ 118:644a7935144b NGINX_0_3_6

nginx 0.3.6 *) Change: now the IMAP/POP3 proxy do not send the empty login to authorization server. *) Feature: the "log_format" supports the variables in the $name form. *) Bugfix: if at least in one server was no the "listen" directive, then nginx did not listen on the 80 port; bug appeared in 0.3.3. *) Bugfix: if the URI part is omitted in "proxy_pass" directive, the the 80 port was always used.
author Igor Sysoev <http://sysoev.ru>
date Mon, 24 Oct 2005 00:00:00 +0400
parents 408f195b3482
children d25a1d6034f1
comparison
equal deleted inserted replaced
117:0821ea4ccfc5 118:644a7935144b
227 NULL, /* exit master */ 227 NULL, /* exit master */
228 NGX_MODULE_V1_PADDING 228 NGX_MODULE_V1_PADDING
229 }; 229 };
230 230
231 231
232 static ngx_int_t (*ngx_http_next_header_filter) (ngx_http_request_t *r); 232 static ngx_http_output_header_filter_pt ngx_http_next_header_filter;
233 static ngx_int_t (*ngx_http_next_body_filter) (ngx_http_request_t *r, 233 static ngx_http_output_body_filter_pt ngx_http_next_body_filter;
234 ngx_chain_t *in);
235 234
236 235
237 static u_char ngx_http_ssi_string[] = "<!--"; 236 static u_char ngx_http_ssi_string[] = "<!--";
238 237
239 static ngx_str_t ngx_http_ssi_none = ngx_string("(none)"); 238 static ngx_str_t ngx_http_ssi_none = ngx_string("(none)");
405 ngx_int_t rc; 404 ngx_int_t rc;
406 ngx_uint_t i; 405 ngx_uint_t i;
407 ngx_buf_t *b; 406 ngx_buf_t *b;
408 ngx_chain_t *cl; 407 ngx_chain_t *cl;
409 ngx_table_elt_t *param; 408 ngx_table_elt_t *param;
409 ngx_connection_t *c;
410 ngx_http_ssi_ctx_t *ctx; 410 ngx_http_ssi_ctx_t *ctx;
411 ngx_http_ssi_conf_t *conf; 411 ngx_http_ssi_conf_t *conf;
412 ngx_http_ssi_param_t *prm; 412 ngx_http_ssi_param_t *prm;
413 ngx_http_ssi_command_t *cmd; 413 ngx_http_ssi_command_t *cmd;
414 ngx_str_t *params[NGX_HTTP_SSI_MAX_PARAMS]; 414 ngx_str_t *params[NGX_HTTP_SSI_MAX_PARAMS];
648 if (rc == NGX_ERROR) { 648 if (rc == NGX_ERROR) {
649 return NGX_ERROR; 649 return NGX_ERROR;
650 } 650 }
651 } 651 }
652 652
653 if (cmd->handler(r, ctx, params) == NGX_OK) { 653 c = r->connection;
654
655 rc = cmd->handler(r, ctx, params);
656
657 if (c->closed) {
658 return NGX_DONE;
659 }
660
661 if (rc == NGX_OK) {
654 continue; 662 continue;
655 } 663 }
656 } 664 }
657 665
658 666