-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
QUIC: ApplicationProtocol in ConnectionOptionsCallback not used #72361
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsDescription
I recall from discussion with msquic team that Reproduction Steps
Expected behaviorI expected an error for multiple reasons:
Actual behaviorThe client connects to the server and the negotiated protocol is It seems like the protocol in the callback is being ignored. Regression?No response Known WorkaroundsNo response ConfigurationNo response Other informationNo response
|
Test of this failing: https://github.com/dotnet/aspnetcore/pull/42774/files#diff-2639fc8c5007d3f91f2c55ab581b5994accf2d6dd78d99e3b2b7d6781470231dR160 (this is where I noticed the issue) |
This feature unfortunately didn't make into MsQuic for .NET 7.0. As you can see microsoft/msquic#2418 is still open, as well as #49423. We should either close this issue as duplicate of #49423 or keep this and close the other (after all this one better describes the remaining problem). |
Ok. I'll close this. |
Description
QuicListenerOptions.ApplicationProtocols
appears to override the values set onQuicServerConnectionOptions.ServerAuthenticationOptions.ApplicationsProtocols
which is returned fromConnectionOptionsCallback
.I recall from discussion with msquic team that
QuicListenerOptions.ApplicationProtocols
must contain all possible protocols, and then the application protocols returned fromConnectionOptionsCallback
must be one of those values.Reproduction Steps
QuicListenerOptions.ApplicationProtocols
to h3.QuicListenerOptions.ConnectionOptionsCallback
to return options with a differentApplicationProtocols
value, e.g.new SslApplicationProtocol("custom")
Expected behavior
I expected an error for multiple reasons:
h3
protocol to the listener butcustom
protocol in the callback.h3
but the connection callback has specifiedcustom
.Actual behavior
The client connects to the server and the negotiated protocol is
h3
.It seems like the protocol in the callback is being ignored.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: