[Mono-bugs] [Bug 656850] [Regression] Deadlock on WebServiceHost.Open

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Dec 4 17:35:57 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=656850

https://bugzilla.novell.com/show_bug.cgi?id=656850#c1


Gonzalo Paniagua Javier <gonzalo at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gonzalo at novell.com

--- Comment #1 from Gonzalo Paniagua Javier <gonzalo at novell.com> 2010-12-04 22:35:56 UTC ---
Jérémie? This happens after I replace the lock (blah) with a RWL.

Joe, in the meantime, do you mind trying this?

diff --git a/mcs/class/System/System.Net/EndPointListener.cs
b/mcs/class/System/System.Net/EndPointListener.cs
index 034ad40..22edac0 100644
--- a/mcs/class/System/System.Net/EndPointListener.cs
+++ b/mcs/class/System/System.Net/EndPointListener.cs
@@ -310,7 +310,7 @@ namespace System.Net {
                                                throw new HttpListenerException
(400, "There's another listener for " + prefix);
                                        return;
                                }
-                               plock.AcquireWriterLock (-1);
+                               plock.UpgradeToWriterLock (-1);
                                prefixes [prefix] = listener;
                        } finally {
                                try {

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list