nghttpx: Fix affinity-cookie-stickiness parameter handling

Fix affinity-cookie-stickiness backend parameter handling.
Previously, if 3 backend options are used for the same pattern, and
the first one does not have affinity-cookie-stickiness, and the rest
of them have affinity-cookie-stickiness=strict, nghttpx wrongly
determines that they have inconsistent configurations.
This commit is contained in:
Tatsuhiro Tsujikawa 2022-10-18 17:14:50 +09:00
parent 2f71f5c3c9
commit 5abafb4268
1 changed files with 1 additions and 0 deletions

View File

@ -1265,6 +1265,7 @@ int parse_mapping(Config *config, DownstreamAddrConfig &addr,
downstreamconf.balloc, params.affinity.cookie.path);
}
g.affinity.cookie.secure = params.affinity.cookie.secure;
g.affinity.cookie.stickiness = params.affinity.cookie.stickiness;
}
} else if (g.affinity.type != params.affinity.type ||
g.affinity.cookie.name != params.affinity.cookie.name ||