The release of the main branch nginx 1.21.4 has been formed, within which the development of new features continues (only changes related to fixing serious bugs and vulnerabilities are made in the parallel stable branch 1.20).
Key Changes:
- Support for establishing HTTP/2 connections using the NPN (Next Protocol Negotiation) extension instead of ALPN has been discontinued;
- Closure is ensured SSL-of connections when using the ALPN extension by the client if a supported protocol is not selected during the connection negotiation;
- In the 'sendfile_max_chunk' directive, the default value has been changed to 2 megabytes;
- In the stream module, the 'proxy_half_close' directive has been added, which allows you to configure the behavior when closing the proxied TCP connection on one side ('TCP half-close');
- In the stream module, the 'ssl_alpn' directive has been added to define the list of supported ALPN protocols (h2, http/1.1) and the variable $ssl_alpn_protocol, reflecting the protocol agreed upon with the client ALPN;
- Support for calling SSL_sendfile() when using OpenSSL 3.0 has been added;
- The 'mp4_start_key_frame' directive has been added in the ngx_http_mp4_module for streaming video starting from a key frame.
- The $content_length variable has been fixed when using chunked transfer encoding;
- Fixed a connection caching bug when receiving a response of incorrect length from the proxied backend;
- Error logging has been corrected to use 'error' level instead of 'info' for improper headers from backends;
- Fixed request hanging issues when using HTTP/2 and the aio_write directive.
Source: opennet.ru
