You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Equals/GetHashCode for UnixDomainSocketEndPoint #69488
My network framework uses EndPoint class as abstraction layer to represent the peer address. It is easy to determine whether the two endpoints represent the same address using Equals method. However, UnixDomainSocketEndPoint doesn't override necessary methods in contrast to IPEndPoint and DnsEndPoint.
Given that both IPEndPoint and DnsEndPoint override these, it's reasonable for UnixDomainSocketEndPoint to as well. I don't think this really needs to be considered an API proposal. Technically it could break someone relying on Equals providing reference equality, but the chances of that are slim, especially since that's not what it means generally when using the base EndPoint.
changed the title [-][API Proposal]: Equals/GetHashCode for UnixDomainSocketEndPoint[/-][+]Equals/GetHashCode for UnixDomainSocketEndPoint[/+]on May 18, 2022
Activity
stephentoub commentedon May 18, 2022
Given that both IPEndPoint and DnsEndPoint override these, it's reasonable for UnixDomainSocketEndPoint to as well. I don't think this really needs to be considered an API proposal. Technically it could break someone relying on Equals providing reference equality, but the chances of that are slim, especially since that's not what it means generally when using the base EndPoint.
sakno commentedon May 18, 2022
@stephentoub , if so, I'm ready to make a PR.
[-][API Proposal]: Equals/GetHashCode for UnixDomainSocketEndPoint[/-][+]Equals/GetHashCode for UnixDomainSocketEndPoint[/+]CarnaViire commentedon May 19, 2022
Triage: that makes sense; we would gladly accept the contribution @sakno
Moving to Future as it's not a priority
sakno commentedon May 25, 2022
@CarnaViire , PR is ready for review.