-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing session id to be something per user as oppose to global hard-c… #82
Fixing session id to be something per user as oppose to global hard-c… #82
Conversation
cpp/client.cc
Outdated
context.AddMetadata("membership", "premium"); | ||
if (affinity) { | ||
// use something unique per user as session id. | ||
context.AddMetadata("session_id", token); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we supposed to use the same value for session_id and authorization token?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just picked token as it is already per user; but we can invent something else per user (so we are not confusing people in this example). Maybe that's better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think that would be better. cc @menghanl who just added go support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, let's use a different value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok sounds good! Fixed! PTAL thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is the Java version of GoogleCloudPlatform#82 to fix the session affinity id. Fixes GoogleCloudPlatform#83
…oded.