-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix IIS outofprocess to remove WebSocket compression handshake (#58846)
- Loading branch information
1 parent
3277b64
commit f526f0c
Showing
13 changed files
with
226 additions
and
47 deletions.
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
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
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
33 changes: 33 additions & 0 deletions
33
src/Servers/IIS/IIS/test/Common.FunctionalTests/WebSocketInProcessTests.cs
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using Microsoft.AspNetCore.Server.IIS.FunctionalTests; | ||
using Microsoft.AspNetCore.InternalTesting; | ||
using Microsoft.AspNetCore.Server.IntegrationTesting; | ||
using Xunit.Abstractions; | ||
|
||
#if !IIS_FUNCTIONALS | ||
using Microsoft.AspNetCore.Server.IIS.FunctionalTests; | ||
|
||
#if IISEXPRESS_FUNCTIONALS | ||
namespace Microsoft.AspNetCore.Server.IIS.IISExpress.FunctionalTests; | ||
#elif NEWHANDLER_FUNCTIONALS | ||
namespace Microsoft.AspNetCore.Server.IIS.NewHandler.FunctionalTests; | ||
#elif NEWSHIM_FUNCTIONALS | ||
namespace Microsoft.AspNetCore.Server.IIS.NewShim.FunctionalTests; | ||
#endif | ||
#else | ||
|
||
namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests; | ||
#endif | ||
|
||
[Collection(IISTestSiteCollectionInProc.Name)] | ||
[MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win8, SkipReason = "No WebSocket supported on Win7")] | ||
[SkipOnHelix("Unsupported queue", Queues = "Windows.Amd64.VS2022.Pre.Open;")] | ||
public class WebSocketsInProcessTests : WebSocketsTests | ||
{ | ||
public WebSocketsInProcessTests(IISTestSiteFixture fixture, ITestOutputHelper testOutput) : base(fixture, testOutput) | ||
{ | ||
Fixture.DeploymentParameters.HostingModel = HostingModel.InProcess; | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/Servers/IIS/IIS/test/Common.FunctionalTests/WebSocketOutOfProcessTests.cs
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using Microsoft.AspNetCore.Server.IIS.FunctionalTests; | ||
using Microsoft.AspNetCore.InternalTesting; | ||
using Microsoft.AspNetCore.Server.IntegrationTesting; | ||
using Xunit.Abstractions; | ||
|
||
#if !IIS_FUNCTIONALS | ||
using Microsoft.AspNetCore.Server.IIS.FunctionalTests; | ||
|
||
#if IISEXPRESS_FUNCTIONALS | ||
namespace Microsoft.AspNetCore.Server.IIS.IISExpress.FunctionalTests; | ||
#elif NEWHANDLER_FUNCTIONALS | ||
namespace Microsoft.AspNetCore.Server.IIS.NewHandler.FunctionalTests; | ||
#elif NEWSHIM_FUNCTIONALS | ||
namespace Microsoft.AspNetCore.Server.IIS.NewShim.FunctionalTests; | ||
#endif | ||
#else | ||
|
||
namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests; | ||
#endif | ||
|
||
[Collection(IISTestSiteCollectionOutOfProc.Name)] | ||
[MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win8, SkipReason = "No WebSocket supported on Win7")] | ||
[SkipOnHelix("Unsupported queue", Queues = "Windows.Amd64.VS2022.Pre.Open;")] | ||
public class WebSocketsOutOfProcessTests : WebSocketsTests | ||
{ | ||
public WebSocketsOutOfProcessTests(IISTestSiteFixture fixture, ITestOutputHelper testOutput) : base(fixture, testOutput) | ||
{ | ||
Fixture.DeploymentParameters.HostingModel = HostingModel.OutOfProcess; | ||
} | ||
} |
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
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
Oops, something went wrong.