-
Notifications
You must be signed in to change notification settings - Fork 25.1k
edit asp0028 /1 #34095
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
edit asp0028 /1 #34095
Conversation
aspnetcore/fundamentals/static-files/samples/9.x/StaticFilesSample/Program.cs
Outdated
Show resolved
Hide resolved
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.
The changes are OK but it's hard to find anything in them that is substantially different in meaning than the original (except the missing TOC node); the text generally seems fine without these changes.
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 have also changed the name to Consider using ListenAnyIP() instead of Listen(IPAddress.Any) (see PR notes)
can you please change the title \ description of the analyzer as well?
aspnetcore/diagnostics/asp0028.md
Outdated
| ## Cause | ||
|
|
||
| On the server machine that supports IPv6, listening to `Any`, rather than `IPv6Any` will either not work or be slower than necessary, because of the [underlying System types implementation](https://github.com/dotnet/runtime/issues/82404). | ||
| [IPv6Any](/dotnet/api/system.net.ipaddress.ipv6any) is preferred to [Any](/dotnet/api/system.net.ipaddress.any) because `Any` is less performant than `IPv6Any`. In some cases, `Any` may not work at all. `Any` has performance problems due to the [underlying System types implementation](https://github.com/dotnet/runtime/issues/82404). |
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.
phrasing has performance problems is not what I wanted to say - it raises a question of why not fix the System types then? I wanted to avoid this
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.
phrasing
has performance problemsis not what I wanted to say - it raises a question of why not fix the System types then? I wanted to avoid this
I've reverted to your wording with my wording. I don't see the difference between slower than necessary and less performant.
aspnetcore/diagnostics/asp0028.md
Outdated
| ## Cause | ||
|
|
||
| On the server machine that supports IPv6, listening to `Any`, rather than `IPv6Any` will either not work or be slower than necessary, because of the [underlying System types implementation](https://github.com/dotnet/runtime/issues/82404). | ||
| [IPv6Any](/dotnet/api/system.net.ipaddress.ipv6any) is preferred to [Any](/dotnet/api/system.net.ipaddress.any) because `Any` is less performant than `IPv6Any`. In some cases, `Any` may not work at all. `Any` has performance problems due to the [underlying System types implementation](https://github.com/dotnet/runtime/issues/82404). |
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.
lets also include the info about server machine supporting IPv6 - it is the case where the analyzer should be applied. Its necessary to have this information
|
@Rick-Anderson ... I opened a PR for it, but it's best if you fix it here ... ... throws a build warning. I'll close the PR that I opened. |
Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>
… into asp026/ra/1
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.
Looks good. I left a few suggestions and one question.
Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>
Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>
| author: deaglegross | ||
| monikerRange: '>= aspnetcore-10.0' | ||
| ms.author: deaglegross | ||
| ms.author: dmkorolev |
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.
Fixes #34090
Internal previews