summaryrefslogtreecommitdiff
path: root/lang/mono/files/patch-mcs_class_System_System.Net.Sockets_Socket.cs
diff options
context:
space:
mode:
authorFlorent Thoumie <flz@FreeBSD.org>2009-02-09 09:00:01 +0000
committerFlorent Thoumie <flz@FreeBSD.org>2009-02-09 09:00:01 +0000
commitc1f23cd26d8ec0c157abfb1fe1f52b3aaddee6e8 (patch)
tree6bc6e9b8c27f338bda10b7f147eca039dcc7fb74 /lang/mono/files/patch-mcs_class_System_System.Net.Sockets_Socket.cs
parentFix doc build with upcoming mono 2.0.1. (diff)
- Update lang/mono to 2.0.1.
- Also update a bunch of c-sharp ports to their latest version. - Change maintainership to mono@FreeBSD.org. PR: ports/129724 Submitted by: Phillip Neumann, Romain Tartiere (bsd-sharp team)
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);
+ }