nghttpx: Fix bug that 503 is returned if backend proto is not mixed

This commit is contained in:
Tatsuhiro Tsujikawa 2016-05-26 04:47:01 +00:00
parent 26eb983cf0
commit 81b3e3811b
1 changed files with 2 additions and 4 deletions

View File

@ -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 {