Author: robertj
Date: 2007-05-19 13:57:16 -0400 (Sat, 19 May 2007)
New Revision: 77693

Modified:
   
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Ipc.Unix/ChangeLog
   
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Ipc.Unix/IpcClientChannel.cs
Log:
2007-05-19  Robert Jordan  <[EMAIL PROTECTED]>

        * IpcClientChannel.cs (CreateMessageSink, IpcToUnix):
        don't try to parse null URLs because non wellknown remote objects
        don't have one. Fixes bug #81653.

        * IpcClientChannel.cs (ChangeUri): make static, reuse IpcToUnix ().



Modified: 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Ipc.Unix/ChangeLog
===================================================================
--- 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Ipc.Unix/ChangeLog
 2007-05-19 17:00:59 UTC (rev 77692)
+++ 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Ipc.Unix/ChangeLog
 2007-05-19 17:57:16 UTC (rev 77693)
@@ -1,3 +1,11 @@
+2007-05-19  Robert Jordan  <[EMAIL PROTECTED]>
+
+       * IpcClientChannel.cs (CreateMessageSink, IpcToUnix):
+       don't try to parse null URLs because non wellknown remote objects
+       don't have one. Fixes bug #81653.
+
+       * IpcClientChannel.cs (ChangeUri): make static, reuse IpcToUnix ().
+
 2005-10-16  Robert Jordan  <[EMAIL PROTECTED]>
 
        * Imported

Modified: 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Ipc.Unix/IpcClientChannel.cs
===================================================================
--- 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Ipc.Unix/IpcClientChannel.cs
       2007-05-19 17:00:59 UTC (rev 77692)
+++ 
trunk/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels.Ipc.Unix/IpcClientChannel.cs
       2007-05-19 17:57:16 UTC (rev 77693)
@@ -80,6 +80,9 @@
                 //
                 internal static string IpcToUnix (string url)
                 {
+                       if (url == null)
+                               return null;
+
                         string portName;
                         string objectUri;
                         Win32.IpcChannelHelper.Parse (url, out portName, out 
objectUri);
@@ -106,7 +109,7 @@
         //
         // Simple message sink that changes ipc URLs to unix URLs.
         //
-        class UrlMapperSink : IMessageSink
+        sealed class UrlMapperSink : IMessageSink
         {
                 readonly IMessageSink _sink;
 
@@ -120,14 +123,11 @@
                         get { return _sink.NextSink; }
                 }
 
-                void ChangeUri (IMessage msg)
+                static void ChangeUri (IMessage msg)
                 {
                         string uri = msg.Properties ["__Uri"] as string;
                         if (uri != null) {
-                                string objectUri;
-                                Win32.IpcChannelHelper.Parse (uri, out 
objectUri);
-                                if (objectUri != null)
-                                        msg.Properties ["__Uri"] = objectUri;
+                                msg.Properties ["__Uri"] = 
IpcClientChannel.IpcToUnix (uri);
                         }
                 }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to