Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Enable HTTP/2 by default.

Maxim Dounin
March 29, 2019 02:18PM
Hello!

On Fri, Mar 29, 2019 at 11:13:09AM -0700, Auke Kok wrote:

> Adds a `nohttp2` option to explicitly disable HTTP/2 support.
> ---
> contrib/vim/syntax/nginx.vim | 2 +-
> src/http/ngx_http_core_module.c | 9 ++++++++-
> 2 files changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/contrib/vim/syntax/nginx.vim b/contrib/vim/syntax/nginx.vim
> index 075b19a..8cff3e0 100644
> --- a/contrib/vim/syntax/nginx.vim
> +++ b/contrib/vim/syntax/nginx.vim
> @@ -62,7 +62,7 @@ syn match ngxListenComment '#.*$'
> \ contained
> \ nextgroup=@ngxListenParams skipwhite skipempty
> syn keyword ngxListenOptions contained
> - \ default_server ssl http2 proxy_protocol
> + \ default_server ssl http2 nohttp2 proxy_protocol
> \ setfib fastopen backlog rcvbuf sndbuf accept_filter deferred bind
> \ ipv6only reuseport so_keepalive
> \ nextgroup=@ngxListenParams skipwhite skipempty
> diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
> index 6b318dd..c7b5c72 100644
> --- a/src/http/ngx_http_core_module.c
> +++ b/src/http/ngx_http_core_module.c
> @@ -3773,6 +3773,9 @@ ngx_http_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
> lsopt.backlog = NGX_LISTEN_BACKLOG;
> lsopt.rcvbuf = -1;
> lsopt.sndbuf = -1;
> +#if (NGX_HTTP_V2)
> + lsopt.http2 = 1;
> +#endif

[...]

Thank you for the patch. No, thanks.

--
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

[PATCH] Enable HTTP/2 by default.

Auke Kok 326 March 29, 2019 02:14PM

Re: [PATCH] Enable HTTP/2 by default.

Maxim Dounin 160 March 29, 2019 02:18PM



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

Online Users

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