summaryrefslogtreecommitdiff
path: root/lang/mono/files/patch-mcs_class_System_System.Net.Sockets_Socket.cs
diff options
context:
space:
mode:
Diffstat (limited to 'lang/mono/files/patch-mcs_class_System_System.Net.Sockets_Socket.cs')
-rw-r--r--lang/mono/files/patch-mcs_class_System_System.Net.Sockets_Socket.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/lang/mono/files/patch-mcs_class_System_System.Net.Sockets_Socket.cs b/lang/mono/files/patch-mcs_class_System_System.Net.Sockets_Socket.cs
new file mode 100644
index 000000000000..368a6a71e7c3
--- /dev/null
+++ b/lang/mono/files/patch-mcs_class_System_System.Net.Sockets_Socket.cs
@@ -0,0 +1,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);
+ }