-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add Version info to ServerAd #1753
Add Version info to ServerAd #1753
Conversation
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.
Two things.
1.) If the adV2 that the director gets from the origin/cache doesn't contain a version (so from anything older than this commit), we still want to be able to get the version. I know I said we'd discuss it later, but I think it's better as part of this PR, in hindsight. So in that case, get the version from the 'User-Agent' string.
2.) Write a unit test to ensure it gets the version properly in either case.
4829408
to
54de7ec
Compare
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.
Looks good to me, I'll merge once the tests have passed.
This PR addresses issue #1725. This PR adds a version field to the server ad. The goal is use this version field in the future for monitoring purposes.