Mercurial > hg > nginx-vendor-current
comparison src/http/ngx_http_copy_filter_module.c @ 668:9fbf3ad94cbf NGINX_1_1_18
nginx 1.1.18
*) Change: keepalive connections are no longer disabled for Safari by
default.
*) Feature: the $connection_requests variable.
*) Feature: $tcpinfo_rtt, $tcpinfo_rttvar, $tcpinfo_snd_cwnd and
$tcpinfo_rcv_space variables.
*) Feature: the "worker_cpu_affinity" directive now works on FreeBSD.
*) Feature: the "xslt_param" and "xslt_string_param" directives.
Thanks to Samuel Behan.
*) Bugfix: in configure tests.
Thanks to Piotr Sikora.
*) Bugfix: in the ngx_http_xslt_filter_module.
*) Bugfix: nginx could not be built on Debian GNU/Hurd.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 28 Mar 2012 00:00:00 +0400 |
parents | d0f7a625f27c |
children |
comparison
equal
deleted
inserted
replaced
667:e0eabdb2bad1 | 668:9fbf3ad94cbf |
---|---|
72 NULL, /* exit master */ | 72 NULL, /* exit master */ |
73 NGX_MODULE_V1_PADDING | 73 NGX_MODULE_V1_PADDING |
74 }; | 74 }; |
75 | 75 |
76 | 76 |
77 static ngx_http_output_body_filter_pt ngx_http_next_filter; | 77 static ngx_http_output_body_filter_pt ngx_http_next_body_filter; |
78 | 78 |
79 | 79 |
80 static ngx_int_t | 80 static ngx_int_t |
81 ngx_http_copy_filter(ngx_http_request_t *r, ngx_chain_t *in) | 81 ngx_http_copy_filter(ngx_http_request_t *r, ngx_chain_t *in) |
82 { | 82 { |
113 | 113 |
114 ctx->pool = r->pool; | 114 ctx->pool = r->pool; |
115 ctx->bufs = conf->bufs; | 115 ctx->bufs = conf->bufs; |
116 ctx->tag = (ngx_buf_tag_t) &ngx_http_copy_filter_module; | 116 ctx->tag = (ngx_buf_tag_t) &ngx_http_copy_filter_module; |
117 | 117 |
118 ctx->output_filter = (ngx_output_chain_filter_pt) ngx_http_next_filter; | 118 ctx->output_filter = (ngx_output_chain_filter_pt) |
119 ngx_http_next_body_filter; | |
119 ctx->filter_ctx = r; | 120 ctx->filter_ctx = r; |
120 | 121 |
121 #if (NGX_HAVE_FILE_AIO) | 122 #if (NGX_HAVE_FILE_AIO) |
122 if (ngx_file_aio) { | 123 if (ngx_file_aio) { |
123 if (clcf->aio) { | 124 if (clcf->aio) { |
290 | 291 |
291 | 292 |
292 static ngx_int_t | 293 static ngx_int_t |
293 ngx_http_copy_filter_init(ngx_conf_t *cf) | 294 ngx_http_copy_filter_init(ngx_conf_t *cf) |
294 { | 295 { |
295 ngx_http_next_filter = ngx_http_top_body_filter; | 296 ngx_http_next_body_filter = ngx_http_top_body_filter; |
296 ngx_http_top_body_filter = ngx_http_copy_filter; | 297 ngx_http_top_body_filter = ngx_http_copy_filter; |
297 | 298 |
298 return NGX_OK; | 299 return NGX_OK; |
299 } | 300 } |
300 | 301 |