Welcome! Log In Create A New Profile

Advanced

Re: Buffers Chain

Paulo Silva
May 23, 2014 06:58AM
there is other option than modify the auto/modules file?

According to my goal (capture the full request response body) I would
say that my module must run right before the postpone.
Am I supposed to modify the auto/modules like follows?

if [ $HTTP_POSTPONE = YES ]; then
HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_POSTPONE_FILTER_MODULE"
HTTP_SRCS="$HTTP_SRCS $HTTP_POSTPONE_FILTER_SRCS"
fi

# insert my module here!

if [ $HTTP_SSI = YES ]; then
have=NGX_HTTP_SSI . auto/have
HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_SSI_FILTER_MODULE"
HTTP_DEPS="$HTTP_DEPS $HTTP_SSI_DEPS"
HTTP_SRCS="$HTTP_SRCS $HTTP_SSI_SRCS"
fi


I did check my modules config file and I did realize that it is
"queued" as HTTP_AUX_FILTER_MODULES. There are different queues for
core modules and addons?


May thanks for your time.
A definitive guide to nginx (modules) development would be a best-seller ;)

On Fri, May 23, 2014 at 11:20 AM, Maxim Dounin <mdounin@mdounin.ru> wrote:
> Hello!
>
> On Fri, May 23, 2014 at 10:23:38AM +0100, Paulo Silva wrote:
>
>> @Maxim: nice hints, thanks.
>>
>> Let me ask you about filters order. To get the contents that will be
>> sent to client, I want to run my body_filter right before the gziping.
>> How to accomplish that or if it is even possible
>>
>> I am worried that copying the buffers content the original ones can be
>> yet modified by other filters and than I will log an outdated copy.
>
> Try looking into auto/modules.
>
> --
> Maxim Dounin
> http://nginx.org/
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel



--
Paulo A. Silva
http://tech.pauloasilva.com
http://linkedin.com/in/devpauloasilva/

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Buffers Chain

Paulo Silva 998 May 22, 2014 10:24AM

Re: Buffers Chain

Maxim Dounin 569 May 23, 2014 05:14AM

Re: Buffers Chain

Paulo Silva 537 May 23, 2014 05:24AM

Re: Buffers Chain

Maxim Dounin 590 May 23, 2014 06:22AM

Re: Buffers Chain

Paulo Silva 499 May 23, 2014 06:58AM

Re: Buffers Chain

Maxim Dounin 536 May 23, 2014 08:00AM

Re: Buffers Chain

Paulo Silva 516 May 23, 2014 09:18AM

Re: Buffers Chain

Maxim Dounin 523 May 23, 2014 09:42AM

Re: Buffers Chain

Paulo Silva 547 May 23, 2014 09:52AM

Re: Buffers Chain

Paulo Silva 481 May 25, 2014 07:24PM

Re: Buffers Chain

splitice 628 May 26, 2014 04:12AM

Re: Buffers Chain

Paulo Silva 516 May 26, 2014 04:20AM

Re: Buffers Chain

splitice 665 May 26, 2014 04:30AM

Re: Buffers Chain

Paulo Silva 523 May 26, 2014 05:18AM

Re: Buffers Chain

splitice 770 May 26, 2014 05:30AM

Re: Buffers Chain

Paulo Silva 570 May 27, 2014 04:16AM

Re: Buffers Chain

Maxim Dounin 659 May 27, 2014 07:10AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready