-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Http2 test for IIS #14644
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
Http2 test for IIS #14644
Conversation
@@ -37,7 +37,7 @@ public static void AddHttpsToServerConfig(this IISDeploymentParameters parameter | |||
|
|||
element.Descendants("access") | |||
.Single() | |||
.SetAttributeValue("sslFlags", "Ssl, SslNegotiateCert"); | |||
.SetAttributeValue("sslFlags", "None"); |
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 need to read into setting this to None. Setting this to none makes it seem like SSL is disabled for the entire site. I'm still seeing in the application that it is binding to https and using HTTP/2. Maybe it's using h2c?
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.
Nvrm, I think it's a poor doc. I'm seeing https on the server.
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.
So what does setting this to None actually do?
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 removes client cert validation I believe.
@@ -63,6 +63,11 @@ private async Task ServerAddresses(HttpContext ctx) | |||
await ctx.Response.WriteAsync(string.Join(",", serverAddresses.Addresses)); | |||
} | |||
|
|||
private async Task CheckIsHttp2(HttpContext ctx) |
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.
private async Task CheckIsHttp2(HttpContext ctx) | |
private async Task CheckProtocol(HttpContext ctx) |
faff31b
to
8e83b3e
Compare
var client = CreateNonValidatingClient(deploymentResult); | ||
client.DefaultRequestVersion = HttpVersion.Version20; | ||
|
||
Assert.Equal("HTTP/2", await client.GetStringAsync($"/CheckIsHttp2")); |
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.
Let's test other protocol versions too?
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.
Other tests already verify this behavior (checking http 1.1)
8e83b3e
to
c50d70f
Compare
Fixes #14139.
cc @gfoidl