[Mono-bugs] [Bug 78034][Nor] New - Cannot start more than 1 mod-mono-server in TCP Mode

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Apr 6 10:50:08 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by informatique.internet at fiducial.fr.

http://bugzilla.ximian.com/show_bug.cgi?id=78034

--- shadow/78034	2006-04-06 10:50:08.000000000 -0400
+++ shadow/78034.tmp.32132	2006-04-06 10:50:08.000000000 -0400
@@ -0,0 +1,57 @@
+Bug#: 78034
+Product: Mono: Tools
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: mod_mono
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: informatique.internet at fiducial.fr               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Cannot start more than 1 mod-mono-server in TCP Mode
+
+Description of Problem:
+Try to start : 
+mod-mono-server --port 9000
+and 
+mod-mono-server --port 9001
+
+on the same machine
+
+Actual Results:
+the second start mono server will fail with : 
+Another mod-mono-server with the same arguments is already running.
+
+No, the another mod-mono-server is not launched with the same arguments
+
+
+Additional Information:
+when a mod-mono-server is launcher with the --port option a lock file is
+created in the /tmp directory
+: /tmp/mod_mono_TCP__hashcode
+
+the hashcode should be calculated with the arguments value, and it is
+calculated with the arguments name:
+
+Here's the patch to correct this mistake :
+Index: src/server.cs
+===================================================================
+--- src/server.cs       (révision 59112)
++++ src/server.cs       (copie de travail)
+@@ -264,7 +264,7 @@
+                        int hash = 0;
+                        for (int i = 0; i < args.Length; i++){
+                                string a = args [i];
+-                               hash ^= args [i].GetHashCode () + i;
++                               hash ^= args [i+1].GetHashCode () + i;
+
+                                switch (a){
+ #if MODMONO_SERVER
+
+Could you commit it?


More information about the mono-bugs mailing list