Welcome! Log In Create A New Profile

Advanced

Re: Restrictions to modifying request->headers_in.headers in NGX_HTTP_PREACCESS_PHASE?

Maxim Dounin
March 28, 2018 03:58PM
Hello!

On Wed, Mar 28, 2018 at 03:47:04PM -0400, Ryan Burn wrote:

> I have a module that registers a handler to run in
> NGX_HTTP_PREACCESS_PHASE. The handler adds headers to
> request->headers_in.headers. This works as I would expect most of the
> time. But I am seeing cases of some crashes when calling
>
> ngx_list_push(&request->headers_in.headers));
>
> Are there any restrictions where you are not allowed to push to
> headers_in.headers like that in the preaccess phase?

You are not allowed to modify r->headers_in, at any time.

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

Restrictions to modifying request->headers_in.headers in NGX_HTTP_PREACCESS_PHASE?

rnburn 844 March 28, 2018 03:48PM

Re: Restrictions to modifying request->headers_in.headers in NGX_HTTP_PREACCESS_PHASE?

Maxim Dounin 511 March 28, 2018 03:58PM

Re: Restrictions to modifying request->headers_in.headers in NGX_HTTP_PREACCESS_PHASE?

rnburn 450 March 28, 2018 04:18PM

Re: Restrictions to modifying request->headers_in.headers in NGX_HTTP_PREACCESS_PHASE?

Maxim Dounin 453 March 29, 2018 09:42AM

Re: Restrictions to modifying request->headers_in.headers in NGX_HTTP_PREACCESS_PHASE?

rnburn 506 March 29, 2018 02:08PM

Re: Restrictions to modifying request->headers_in.headers in NGX_HTTP_PREACCESS_PHASE?

Robert Paprocki 449 March 29, 2018 02:36PM

Re: Restrictions to modifying request->headers_in.headers in NGX_HTTP_PREACCESS_PHASE?

rnburn 632 March 30, 2018 10:32AM

RE: Restrictions to modifying request->headers_in.headers in NGX_HTTP_PREACCESS_PHASE?

erankor 675 March 31, 2018 10:40AM



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

Online Users

Guests: 95
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