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 [email protected] http://mailman.nginx.org/mailman/listinfo/nginx-devel
