From 81b3e3811b35ebf19114a724f70d6979168b521e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 26 May 2016 04:47:01 +0000 Subject: [PATCH] nghttpx: Fix bug that 503 is returned if backend proto is not mixed --- src/shrpx_worker.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/shrpx_worker.cc b/src/shrpx_worker.cc index d75da0b5..cd09a78d 100644 --- a/src/shrpx_worker.cc +++ b/src/shrpx_worker.cc @@ -222,10 +222,8 @@ Worker::Worker(struct ev_loop *loop, SSL_CTX *sv_ssl_ctx, SSL_CTX *cl_ssl_ctx, << ", number of h2 backend: " << num_http2; } - if (num_http2 > 0 && num_http1 > 0) { - shared_addr->http1_pri.weight = num_http1; - shared_addr->http2_pri.weight = num_http2; - } + shared_addr->http1_pri.weight = num_http1; + shared_addr->http2_pri.weight = num_http2; dst.shared_addr = shared_addr; } else {