From c0577602d1ee8ca93d9e8ea4485f8ec9367a204a Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 1 Oct 2012 22:37:35 +0900 Subject: [PATCH] shrpx: Made SPDY/3 default protocol in SPDY proxy mode The reason why we choose SPDY/2 as default for SPDY prxy was due to Chrome's window update bug. Now its fix is available in Chrome stable, we make SPDY/3 as default. --- src/shrpx_ssl.cc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/shrpx_ssl.cc b/src/shrpx_ssl.cc index 7aeabe00..f480343b 100644 --- a/src/shrpx_ssl.cc +++ b/src/shrpx_ssl.cc @@ -128,15 +128,8 @@ SSL_CTX* create_ssl_context() verify_callback); } // We speak "http/1.1", "spdy/2" and "spdy/3". - if(get_config()->spdy_proxy) { - // It seems SPDY/3 flow control does not work well in proxy - // connection. - const char *protos[] = { "spdy/2", "spdy/3", "http/1.1" }; - set_npn_prefs(proto_list, protos, 3); - } else { - const char *protos[] = { "spdy/3", "spdy/2", "http/1.1" }; - set_npn_prefs(proto_list, protos, 3); - } + const char *protos[] = { "spdy/3", "spdy/2", "http/1.1" }; + set_npn_prefs(proto_list, protos, 3); next_proto.first = proto_list; next_proto.second = sizeof(proto_list);