Set Count to 0 as well as BytesTransferred when reusing a SocketAsyncEventArgs.
authorualtinok <ufukaltinok@gmail.com>
Wed, 4 May 2011 14:41:44 +0000 (07:41 -0700)
committerualtinok <ufukaltinok@gmail.com>
Wed, 4 May 2011 14:41:44 +0000 (07:41 -0700)
mcs/class/System/System.Net.Sockets/Socket_2_1.cs

index 153a43eb0b9a23085cb8f2502d2a224b76f295bb..c04bb8b7d2b4414ac5a131d3d8090e278c47971b 100644 (file)
@@ -495,6 +495,7 @@ namespace System.Net.Sockets {
                                args.SetLastOperation (async_op);
                                args.SocketError = SocketError.Success;
                                args.BytesTransferred = 0;
+                                args.Count = 0;
                        }
 
                        public void Accept ()