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
socket.Send() throw a socket exception ErrorCode:95 on linux #28706
I'm setting up a linux server,but my application always throw an exception "System.Net.Sockets.SocketException(95): Operation not supported.The same code can run on Windows Server perfectly.
Here is the part of my code :
SocketFlags.Partial is not supported with Sends on Linux; it's a Windows-specific concept (even on Windows it might result in not supported failures from the OS as it's only supported by some transports). Why are you specifying it? Can you simply replace it with None?
Activity
karelz commentedon Feb 17, 2019
Which .NET Core version do you use? Can you try latest released version?
stephentoub commentedon Feb 17, 2019
SocketFlags.Partial is not supported with Sends on Linux; it's a Windows-specific concept (even on Windows it might result in not supported failures from the OS as it's only supported by some transports). Why are you specifying it? Can you simply replace it with None?
SCTIT commentedon Feb 19, 2019
Thanks karelz and stephentoub, I have fix this problem.