SPDY: support for SPDY v3

Hi,

We have just implemented the support for SPDY v3 in nginx, with flow
control (upload and download), and a switch option between SPDY v2 and
SPDY v3.

This patch is for Nginx-1.5.8.

The directives we added are:

spdy_version
syntax: spdy_version [2|3]
default: spdy_version 3
context: http, server
Specify the version of current SPDY protocol.

spdy_flow_control
syntax: spdy_flow_control on|off
default: spdy_flow_control 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: spdy_init_recv_window_size 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.

Hope this patch is helpful. Have fun :slight_smile:

Thank you.

Hi!

On 12/22/13 4:56 PM, Weibin Y. wrote:

Hi,

We have just implemented the support for SPDY v3 in nginx, with flow
control (upload and download), and a switch option between SPDY v2 and
SPDY v3.

This patch is for Nginx-1.5.8.
[…]

Thanks for the submission!

We already have spdy/3.1 support in our roadmap
(Roadmap – nginx) and planning to finish this
project by the end of January, 2014.

During this work we will evaluate the Taobao patch too.

Thanks again,

Maxim K.


Maxim K.

This patch can use with google’s pagespeed.


-o objs/addon/src/ngx_fetch.o \
../ngx_pagespeed-release-1.6.29.7-beta/src/ngx_fetch.cc

…/ngx_pagespeed-release-1.6.29.7-beta/src/ngx_fetch.cc: In member
function
‘bool net_instaweb::NgxFetch::Init()’:
…/ngx_pagespeed-release-1.6.29.7-beta/src/ngx_fetch.cc:167:22: error:
‘ngx_resolver_ctx_t’ has no member named ‘type’
…/ngx_pagespeed-release-1.6.29.7-beta/src/ngx_fetch.cc: In static
member
function ‘static void
net_instaweb::NgxFetch::NgxFetchResolveDone(ngx_resolver_ctx_t*)’:
…/ngx_pagespeed-release-1.6.29.7-beta/src/ngx_fetch.cc:306:56: error:
cannot convert ‘ngx_addr_t’ to ‘in_addr_t {aka unsigned int}’ in
assignment
make[1]: *** [objs/addon/src/ngx_fetch.o] Error 1
make[1]: Leaving directory `/tmp/nginx-1.5.8’
make: *** [build] Error 2

Posted at Nginx Forum:

fred Wrote:

This patch can use with google’s pagespeed.

The API for resolver has changed, see;

for code that fixes this for pre 1.5.8 and post 1.5.8

Posted at Nginx Forum: