Skip to content

Latest commit

 

History

History
68 lines (35 loc) · 1.79 KB

ngx_http_spdy_module.md

File metadata and controls

68 lines (35 loc) · 1.79 KB

Name

NOTE

  1. This module has been updated to official nginx SPDY/3.1 module, the document is available here: http://nginx.org/en/docs/http/ngx_http_spdy_module.html
  2. This document only applies to Tengine-2.1.0 and its old version. But the listen option spdy_detect can still be used with SPDY/3.1.
  3. Tengine-2.2.0 or later provides support for HTTP/2 and supersedes the SPDY module.

ngx_http_spdy_module

Tengine added SPDY/3 support to this module. The new directives are listed below.

Directives

spdy_version

Syntax: spdy_version [2|3]

Default: 3

Context: http, server

Specify the version of current SPDY protocol.

spdy_flow_control

Syntax: spdy_flow_control on|off

Default: on

Context: http, server

Turn on or off with SPDY flow control.

spdy_init_recv_window_size

Syntax: spdy_init_recv_window_size size

Default: 64k

Context: http, server

Specify the receiving window size for SPDY. By default, it's 64K. It will send a WINDOW UPDATE frame when it receives half of the window size data every time.

spdy_detect

Syntax: listen address[:port] [spdy_detect] [ssl]

Default:

Context: listen directive

Server can work for SPDY and HTTP on the same port with this directive. Note that the server will examine the first byte of one connection and determine whether the connection is SPDY or HTTP based on what it looks like (0x80 or 0x00 for SPDY).

Server will listen on port 80 for SPDY and HTTP, for example:

listen 80 spdy_detect;

Server will detect whether SPDY or HTTP is used without using a TLS extension (NPN), for example:

listen 443 ssl spdy_detect;

Server can detect whether SPDY or HTTP is used directly, and also it can negotiate with client via NPN, for example:

listen 443 ssl spdy_detect spdy;