[Mono-bugs] [Bug 70699][Nor] Changed - webmethod with [SoapDocumentMethod(OneWay=true)] attribute doesn't return immediately

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 4 Feb 2005 09:41:17 -0500 (EST)


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 tori@alfanet.hu.

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

--- shadow/70699	2005-01-31 02:15:33.000000000 -0500
+++ shadow/70699.tmp.28861	2005-02-04 09:41:17.000000000 -0500
@@ -23,6 +23,25 @@
 The other problem is that there could be more clients at the same time 
 and with mono the clients have to wait each other. So it seems only one 
 issue of the service can run at a time.
 
 ------- Additional Comments From miguel@ximian.com  2005-01-31 02:15 -------
 Could you please post samples?
+
+------- Additional Comments From tori@alfanet.hu  2005-02-04 09:41 -------
+This method waits for 10 seconds and returns:
+		[WebMethod]
+		public void HelloWorld()
+		{
+			System.Threading.Thread.Sleep(10000);
+		}
+
+This method should return immediately:
+		[WebMethod]
+		[SoapDocumentMethod(OneWay=true)]
+		public void HelloWorld()
+		{
+			System.Threading.Thread.Sleep(10000);
+		}
+
+Anyway i made a workaround: i start a new thread within the 
+webmethod that does the work.