-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[HTTP/3] Stress hack for msquic dropping connections #84793
Merged
ManickaP
merged 13 commits into
dotnet:main
from
ManickaP:mapichov/h3-stress-msquic-hack
Apr 28, 2023
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
df45d59
Implement the same hack as for functional tests to prevent msquic fro…
ManickaP df7b541
Feedback: removed code sharing and used reflaction
ManickaP bd6c04d
Try to fix missing build dependency
ManickaP fa5820e
Feedback - removed test only function and replaced with shared code +…
ManickaP b649716
Merge branch 'main' into mapichov/h3-stress-msquic-hack
antonfirsov ed73b02
fix argument handling in build-local.ps1
antonfirsov 7e4d512
do not use MsQuicLibraryVersion
antonfirsov 1f8f56e
copy msquic interop utils to the SDK base image
antonfirsov d2c113c
use LinkBase in Functional.Tests.csproj for wildcard include
antonfirsov 7613f06
Merge branch 'main' into mapichov/h3-stress-msquic-hack
antonfirsov 0a9731f
Use MsQuicLibraryVersion in out internal logging and as a side-effect…
ManickaP e316a13
Comment
ManickaP 949d82b
also copy files to the Linux container
antonfirsov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,7 +130,7 @@ static MsQuicApi() | |
} | ||
string? gitHash = Marshal.PtrToStringUTF8((IntPtr)libGitHash); | ||
|
||
MsQuicLibraryVersion = $"{Interop.Libraries.MsQuic} version={version} commit={gitHash}"; | ||
MsQuicLibraryVersion = $"{Interop.Libraries.MsQuic} {version} ({gitHash})"; | ||
|
||
if (version < s_minMsQuicVersion) | ||
{ | ||
|
@@ -143,7 +143,7 @@ static MsQuicApi() | |
|
||
if (NetEventSource.Log.IsEnabled()) | ||
{ | ||
NetEventSource.Info(null, $"Loaded MsQuic library version '{version}', commit '{gitHash}'."); | ||
NetEventSource.Info(null, $"Loaded MsQuic library '{MsQuicLibraryVersion}'."); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Brilliant 😆 |
||
} | ||
|
||
// Assume SChannel is being used on windows and query for the actual provider from the library if querying is supported | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@ManickaP unfortunately, this line fails with
NullReferenceException
in release builds. I assume theMsQuicLibraryVersion
is being trimmed away, since it's unused in the production code.We could workaround this by moving the version extraction to a shared test-utility (together with the MaxWorkerQueue hack helper), but IMHO it's not worth it unless we think that it's super-important to know the msquic version for stress test troubleshooting.
For now I'm just removing 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.
is it possible that there is image without MsQuic?
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.
What do you mean? If you are suspecting lack of msquic as the root cause of this error - it's not the case. Removing code messing with MsQuicLibraryVersion makes things work (= HTTP/3 stress runs).
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.
In that case you'd get "unknown" as the MsQuic version, the code expects that.
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.
Another option would be to tell the trimmer to keep it there via
DynamicDependency
. And this is just one string.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.
We should try to clarify whether test-only usage of
DynamicDependency
is ok, without that, I prefer to defensively assume it's not.