nghttpx: Fix broken session affinity
Session affinity has been broken since
fdcdb21c38
. This commit reverts the
relevant part of the commit to fix the session affinity.
This commit is contained in:
parent
be16a24fcc
commit
470f06e5f6
|
@ -333,9 +333,6 @@ void Worker::replace_downstream_config(
|
||||||
auto it = addr_groups_indexer.find(dkey);
|
auto it = addr_groups_indexer.find(dkey);
|
||||||
|
|
||||||
if (it == std::end(addr_groups_indexer)) {
|
if (it == std::end(addr_groups_indexer)) {
|
||||||
std::shuffle(std::begin(shared_addr->addrs), std::end(shared_addr->addrs),
|
|
||||||
randgen_);
|
|
||||||
|
|
||||||
auto shared_addr_ptr = shared_addr.get();
|
auto shared_addr_ptr = shared_addr.get();
|
||||||
|
|
||||||
for (auto &addr : shared_addr->addrs) {
|
for (auto &addr : shared_addr->addrs) {
|
||||||
|
|
Loading…
Reference in New Issue