# SPDY: support for SPDY v3

**URL:** <https://www.ruby-forum.com/t/spdy-support-for-spdy-v3/238191>\
**Category:** NGINX\
**Created:** [December 22, 2013, 1:57pm UTC](https://www.ruby-forum.com/t/spdy-support-for-spdy-v3/238191 "2013-12-22T13:57:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [December 22, 2013, 1:57pm UTC](https://www.ruby-forum.com/t/spdy-support-for-spdy-v3/238191/1 "2013-12-22T13:57:40Z")

</div>

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 🙂

Thank you.

---

<div class="post-metadata">

**Author:** ![yaoweibin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/e9bcb4/32.png) [@yaoweibin](https://www.ruby-forum.com/u/yaoweibin)\
**Post date:** [December 25, 2013, 10:54am UTC](https://www.ruby-forum.com/t/spdy-support-for-spdy-v3/238191/2 "2013-12-25T10:54:53Z")

</div>

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  
([http://trac.nginx.org/nginx/roadmap](http://trac.nginx.org/nginx/roadmap)) 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.

> **[F5 NGINX: Built for cloud-native apps. Ready for AI traffic.](https://www.f5.com/products/nginx)**
>
> Deliver modern applications with NGINX. Explore high-performance load balancing, API gateways, and web server solutions trusted by top global enterprises.

---

<div class="post-metadata">

**Author:** ![yaoweibin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/e9bcb4/32.png) [@yaoweibin](https://www.ruby-forum.com/u/yaoweibin)\
**Post date:** [December 25, 2013, 2:56pm UTC](https://www.ruby-forum.com/t/spdy-support-for-spdy-v3/238191/3 "2013-12-25T14:56:06Z")

</div>

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:

> **[Re: \[PATCH\] SPDY: support for SPDY v3](https://forum.nginx.org/read.php?2,245760,245829#msg-245829)**
>
> 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 synt

---

<div class="post-metadata">

**Author:** ![yaoweibin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/e9bcb4/32.png) [@yaoweibin](https://www.ruby-forum.com/u/yaoweibin)\
**Post date:** [December 25, 2013, 3:10pm UTC](https://www.ruby-forum.com/t/spdy-support-for-spdy-v3/238191/4 "2013-12-25T15:10:42Z")

</div>

## fred Wrote:

> This patch can use with google’s pagespeed.

The API for resolver has changed, see;

> <https://github.com/openresty/lua-nginx-module/commit/f364c82039d8d76efa0767a7fd909935d5c40a65>

for code that fixes this for pre 1.5.8 and post 1.5.8

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,245760,245831#msg-245831](http://forum.nginx.org/read.php?2,245760,245831#msg-245831)
