Welcome! Log In Create A New Profile

Advanced

Re: [nginx] Cleaned up r->headers_out.headers allocation error handling.

Maxim Dounin
April 24, 2017 12:44PM
Hello!

On Mon, Apr 24, 2017 at 07:23:13PM +0300, Sorin Manole wrote:

> >> For the Cache-Control header, the fix is to postpone pushing
> >> r->headers_out.cache_control until its value is completed.
>
> Why not do the same thing for a bunch of other places like:
> ngx_http_auth_basic_set_realm
> ngx_http_range_not_satisfiable
>
> That is, for the latter, first initialize content_range, and then add it to
> headers.
> Looks like a safer strategy then rolling back a change in case of failure.

This was considered in earlier versions of the patch. The result
seems harder to read though, and also requires much more code
changes.

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

[nginx] Cleaned up r->headers_out.headers allocation error handling.

Sergey Kandaurov 430 April 20, 2017 12:34PM

Re: [nginx] Cleaned up r->headers_out.headers allocation error handling.

Sorin Manole 177 April 24, 2017 12:24PM

Re: [nginx] Cleaned up r->headers_out.headers allocation error handling.

Maxim Dounin 183 April 24, 2017 12:44PM



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

Online Users

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