add some comments to design sticky session

This commit is contained in:
Jun Kurihara 2023-04-28 20:03:50 +09:00
commit 2d79be5577
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23
5 changed files with 33 additions and 8 deletions

View file

@ -266,6 +266,8 @@ where
};
// Fix unique upstream destination since there could be multiple ones.
// TODO: StickyならCookieをここでgetに与える必要
// TODO: Stickyで、Cookieが与えられなかったらset-cookie向けにcookieを返す必要。upstreamオブジェクトに含めるのも手。
let upstream_chosen = upstream_group.get().ok_or_else(|| anyhow!("Failed to get upstream"))?;
// apply upstream-specific headers given in upstream_option