Hi,
These patches change http2 and http3 configurations. Previously, both protocols
were configured by "listen" parameters:
listen 8800 ssl http2;
listen 8443 http3;
The patches introduce new directives for configuring http2 and http3 in server
scope:
server {
listen 8800 ssl;
listen 8443 quic;
http2 on;
http3 on;
...
}
Now protocol list is a property of server, not a listener. After choosing
a server by SNI, nginx has a list of protocols supported in that particular
server. The right protocol is then chosen in ALPN callback.
For plain http2 connections, a simple preread is implemented which tells http/1
from http2 by the first symbol similar to TLS signature preread in http.
--
Roman Arutyunyan
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel