32 lines
1,009 B
Text
32 lines
1,009 B
Text
$NetBSD: patch-ce,v 1.1 2008/02/13 14:16:43 kefren Exp $
|
|
--- mcs/class/System/System.Net.Sockets/Socket.cs.orig 2008-02-08 11:30:11.000000000 +0200
|
|
+++ mcs/class/System/System.Net.Sockets/Socket.cs 2008-02-08 11:33:32.000000000 +0200
|
|
@@ -1452,7 +1452,7 @@
|
|
}
|
|
|
|
int error = 0;
|
|
- if (!blocking) {
|
|
+// if (!blocking) {
|
|
SocketAddress serial = end_point.Serialize ();
|
|
Connect_internal (socket, serial, out error);
|
|
if (error == 0) {
|
|
@@ -1464,16 +1464,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);
|
|
}
|
|
|