2009-05-22 Sebastien Pouliot <sebastien@ximian.com>
commit81c2b840f78765a8b7598af138ad2472a0b7d55f
authorSebastien Pouliot <sebastien@ximian.com>
Fri, 22 May 2009 13:58:03 +0000 (22 13:58 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Fri, 22 May 2009 13:58:03 +0000 (22 13:58 -0000)
treee141cbe693b5c51c1b7315830e7e7953d7677d10
parentd70fb792c23244e7ea4732bc6bfbb97e099ee911
2009-05-22  Sebastien Pouliot  <sebastien@ximian.com>

* Socket_2_1.cs: Do not throw a SecurityException if the security
policy check fails in NET_2_1 but set the SocketError to AccessDenied
ensure the EndPoint has a valid policy before connecting.
* SocketAsyncEventArgs.cs: Don't recurse endlessly in SendCallback
and ReceiveCallback if the socket is not connected. Check for
AccessDenied in ConnectCallback (needed for the security policy
check in NET_2_1).

svn path=/trunk/mcs/; revision=134596
mcs/class/System/System.Net.Sockets/ChangeLog
mcs/class/System/System.Net.Sockets/SocketAsyncEventArgs.cs
mcs/class/System/System.Net.Sockets/Socket_2_1.cs