⬆️ ⬇️

SPDY support in nginx

Nginx developers have announced a beta version of the module that implements support for the SPDY draft 2 protocol. The module is now distributed as a patch for the developer version of nginx 1.3.x (patch: http://nginx.org/patches/spdy/patch.spdy.txt ).



So far, the module has a number of restrictions (lack of push support from the server, post_action directives, bandwidth restrictions, the SSL buffer is disabled), but in the coming months it is planned to modify it, remove all restrictions and fully integrate into the main nginx code.



The SPDY protocol is supported by Firefox and Chrome browsers.



To enable SPDY on the server, you need to install the above patch and add the spdy and ssl parameters to the listen directive.

')

server {

listen 443 ssl spdy default_server;



ssl_certificate server.crt;

ssl_certificate_key server.key;



...

}




The default settings are more or less optimized for typical use, but you can manually change the buffer size for each worker (1 MB by default), the number of simultaneous streams in one connection (100), the index size of the ID streams (2, 4, 8, 16, 32, 64, 128, etc., by default 32), data waiting time from the client (30 s), inactivity time-out until the connection is broken (3 min), header compression level (from 0 to 9, default 1) , window size compression LZ77 (4 KB).

Source: https://habr.com/ru/post/145918/



All Articles