-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[QUIC] Log msquic version and commit hash to event log and to test output. #80612
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
Conversation
|
Tagging subscribers to this area: @dotnet/ncl |
CarnaViire
left a comment
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, thanks!
| if (NetEventSource.Log.IsEnabled()) | ||
| { | ||
| NetEventSource.Info(null, $"Incompatible MsQuic library version '{version}', expecting '{MsQuicVersion}'"); | ||
| NetEventSource.Error(null, $"Cannot retrieve {nameof(QUIC_PARAM_GLOBAL_LIBRARY_GIT_HASH)} from MsQuic library: '{status}'."); |
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.
Did you check it with both official and manually build package?
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.
CI is running with the official packages and I run locally with manually built msquic from the its main branch.
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.
CI would not log events though, would it?
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.
Note that this won't get hit unless the library is built without this property, which doesn't exists ATM. It's just checking for the status as we do with all msquic calls.
src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/MsQuicApi.cs
Outdated
Show resolved
Hide resolved
| uint paramSize; | ||
| int status; | ||
|
|
||
| arraySize = 4; |
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.
It'd be better if these could be consts, e.g.
https://sharplab.io/#v2:EYLgxg9gTgpgtADwGwBYA0AXEBDAzgWwB8ABAJgEYBYAKGIAYACY8gOgCUBXAOwwEt8YLAMIR8AB14AbGFADKMgG68wMXAG4aNANr4IAEw7SQDWQGteYgDIQw2SbgCSXXhgC6m2gGYmpBkIYA3jQMIUze3LjYAGYwDLjAAJ4YsQCy5AAUAJSBwaF5kFy4GAy8PAwAglBQ2AmyvABesQC8DCga1Hl58UkwAFQMYhhQDC1F2GCmdpI2cYnJWpXVtQ0wru2docQA7ANDWnRruSEAvkcMZ8ThhdGx3ckMKaRZOR0bJWWLNXWNI63rb3c+rthqMMONJpJpmBZj0FlUvitDq8NttgfskXlTtRjkA==
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.
How much does this matter if this is called once per the whole application? Or is this more about setting up good examples/usage patterns?
EDIT: I did change it in the code, I'm just curious about the reasoning.
rzikm
left a comment
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 ![]()
Fixes #75596