[socket] Enable Shutdown on socket disposal only on specific platforms
authorLudovic Henry <ludovic@xamarin.com>
Fri, 23 Oct 2015 12:08:16 +0000 (13:08 +0100)
committerLudovic Henry <ludovic@xamarin.com>
Fri, 23 Oct 2015 12:09:59 +0000 (13:09 +0100)
commit18f06f331e51a0f7c0012fc380f6c6de757eedf3
treeb0cc052424ba5acea0f2817575a308a4fd215ddc
parent49745ffe58a36f7ec75007c2074bf1391335ac14
[socket] Enable Shutdown on socket disposal only on specific platforms

This breaks Linux, because a shutdown will cause a recv/recvfrom on the
remote host to return without an error.

This would trigger in System.Net.Sockets.SocketTest.ConnectedProperty.
mcs/class/System/System.Net.Sockets/SafeSocketHandle.cs