summaryrefslogtreecommitdiff
path: root/lang/mono/files/patch-mcs_class_System_System.Net.Sockets_Socket.cs
blob: 368a6a71e7c30377e2352970c67888c8d3479595 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- mcs/class/System/System.Net.Sockets/Socket.cs.orig	2008-11-01 00:35:55.000000000 -0300
+++ mcs/class/System/System.Net.Sockets/Socket.cs	2008-11-01 00:38:16.000000000 -0300
@@ -1552,7 +1552,7 @@
 			}
 
 			int error = 0;
-			if (!blocking) {
+//			if (!blocking) {
 				SocketAddress serial = end_point.Serialize ();
 				Connect_internal (socket, serial, out error);
 				if (error == 0) {
@@ -1564,15 +1564,16 @@
 					connected = false;
 					req.Complete (new SocketException (error), true);
 				}
-			}
+//			}
 
-			if (blocking || error == (int) SocketError.InProgress || error == (int) SocketError.WouldBlock) {
+/*			if (blocking || error == (int) SocketError.InProgress || error == (int) SocketError.WouldBlock) {
 				// continue asynch
 				connected = false;
 				Worker worker = new Worker (req);
 				SocketAsyncCall sac = new SocketAsyncCall (worker.Connect);
 				sac.BeginInvoke (null, req);
 			}
+*/
 
 			return(req);
 		}