Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Proxy: add "proxy_ssl_alpn" directive

Piotr Sikora via nginx-devel
June 19, 2017 10:32AM
Hey Maxim,

> It doesn't look like this patch make sense by its own.
>
> If this patch is a part of a larger work, please consider
> submitting a patch series with the whole feature instead.
> Individual patches which doesn't make much sense
> by its own are hard to review, and are likely to be rejected.

Actually, it does, the only missing part (from HTTP/2 patchset) is:

case NGX_HTTP_VERSION_11:
ngx_str_set(&alpn, NGX_HTTP_11_ALPN_ADVERTISE);
break;
+
+#if (NGX_HTTP_V2)
+ case NGX_HTTP_VERSION_20:
+ ngx_str_set(&alpn, NGX_HTTP_V2_ALPN_ADVERTISE);
+ break;
+#endif
}

if (ngx_ssl_alpn_protos(cf, plcf->upstream.ssl, &alpn) != NGX_OK) {

....so this patch is perfectly reviewable on its own.

In case you expected ALPN-negotiation - I didn't add it, since it
would require rewrite of upstream logic, i.e. u->create_request()
would need to be called after upstream is already connected, and
possibly again in case of retries that negotiated different ALPN
protocol, which would add complexity to the already big patchset.
Also, I'm not sure how useful this is for upstream connections in
reverse proxies.

Let me know if that's a must-have, but IMHO we could always add
"proxy_http_version alpn" in the future, without blocking this and
HTTP/2 patchset, which effectively implement "prior knowledge".

Best regards,
Piotr Sikora
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Proxy: add "proxy_ssl_alpn" directive

Piotr Sikora via nginx-devel 424 June 03, 2017 11:30PM

Re: [PATCH] Proxy: add "proxy_ssl_alpn" directive

Maxim Dounin 270 June 08, 2017 12:34PM

Re: [PATCH] Proxy: add "proxy_ssl_alpn" directive

Piotr Sikora via nginx-devel 149 June 19, 2017 10:32AM

Re: [PATCH] Proxy: add "proxy_ssl_alpn" directive

Maxim Dounin 257 June 19, 2017 01:36PM



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

Online Users

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