Skip to content
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

Drop .NET 7.0 TFM #2498

Closed
wants to merge 5 commits into from
Closed

Drop .NET 7.0 TFM #2498

wants to merge 5 commits into from

Conversation

MihaZupan
Copy link
Member

No description provided.

@MihaZupan MihaZupan added this to the v.Next milestone May 14, 2024
@MihaZupan MihaZupan self-assigned this May 14, 2024
<OutputType>Library</OutputType>
<RootNamespace>Yarp.ReverseProxy</RootNamespace>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Nullable>enable</Nullable>
<IsAotCompatible>true</IsAotCompatible>
<IsAotCompatible Condition="'$(TargetFramework)' != 'net6.0'">true</IsAotCompatible>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why the condition is needed here now, but opened dotnet/sdk#40870 for it

@@ -513,16 +513,6 @@ private void FixupUpgradeRequestHeaders(HttpContext context, HttpRequestMessage
{
// 5.0 servers provide a definitive answer for us.
hasBody = canHaveBodyFeature.CanHaveBody;

#if NET7_0
// TODO: Kestrel 7.0 bug only, hasBody shouldn't be true for ExtendedConnect.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good reason not to remove the TFM, and why doing so is a breaking change, it's re-introducing a known compat bug.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this part would be unreachable on 6.0 anyway, as the request would blow up earlier here

destinationRequest.Method = RequestUtilities.GetHttpMethod(context.Request.Method);

due to CONNECT not being supported.

@MihaZupan MihaZupan marked this pull request as draft May 14, 2024 17:22
@MihaZupan
Copy link
Member Author

Triage: We'll keep it for now as it isn't costing us much to keep around. If we hit any issues (build / compliance / etc.), we'll drop it.
Otherwise, it'll be removed together with 6.0 when it goes out of support in November at the latest.

Warning

If you're running YARP on .NET 7: don't. The scenario is no longer supported.
See https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core#lifecycle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants