-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Annotate System.Net.Sockets for nullable reference types #32675
Conversation
Please help add exactly one area label if the bot does not. It teaches the bot. #Closed |
7deb3df
to
37bdb46
Compare
Any thoughts on having the bot post a comment when it doesn't add a label? It could mention that it couldn't add a label, maybe log which areas it thinks are the closest, and ask a human to manually add a label. #Closed |
@eiriktsarpalis @buyaa-n - any feedback? #Closed |
src/libraries/Common/src/Interop/Windows/WinSock/Interop.TransmitFile.cs
Show resolved
Hide resolved
src/libraries/System.IO.Pipes/src/System/IO/Pipes/NamedPipeClientStream.Unix.cs
Show resolved
Hide resolved
src/libraries/System.Net.Sockets/src/System/Net/Sockets/AcceptOverlappedAsyncResult.Unix.cs
Show resolved
Hide resolved
src/libraries/System.Net.Sockets/src/System/Net/Sockets/AcceptOverlappedAsyncResult.Windows.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Sockets/src/System/Net/Sockets/AcceptOverlappedAsyncResult.Windows.cs
Outdated
Show resolved
Hide resolved
@@ -14,7 +14,7 @@ internal static partial class Mswsock | |||
[DllImport(Interop.Libraries.Mswsock, SetLastError = true)] | |||
internal static extern unsafe bool TransmitFile( | |||
SafeHandle socket, | |||
SafeHandle fileHandle, | |||
SafeHandle? fileHandle, |
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.
In what situation do we pass null here? #Closed
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.
In the case where BeginSendFile(string? fileName, byte[]? preBuffer, byte[]? postBuffer
is called with a null or empty fileName
. #Closed
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.
Skimmed through it and left a few comments, but generally LGTM. Welcome to the wonderful world of nullable reference types ;)
src/libraries/System.Net.Sockets/src/System/Net/Sockets/MulticastOption.cs
Show resolved
Hide resolved
src/libraries/System.Net.Sockets/src/System/Net/Sockets/MulticastOption.cs
Show resolved
Hide resolved
src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketAsyncEventArgs.Windows.cs
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.
Thanks!
Thanks for all the feedback. I have addressed it, and if I don't receive anymore I'll merge this when it is green. |
The 2 OSX failures are #32882. |
Contributes to #2339
Depends on #32518.
/cc @dotnet/ncl