Author: gonzalo
Date: 2005-04-01 17:15:46 -0500 (Fri, 01 Apr 2005)
New Revision: 42482
Modified:
trunk/xsp/ChangeLog
trunk/xsp/server/ApplicationServer.cs
Log:
2005-04-01 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* server/ApplicationServer.cs: use a foreground thread to stop the
server instead of one from the threadpool. Patch from Rob Lyon that
fixes bug #73357.
Modified: trunk/xsp/ChangeLog
===================================================================
--- trunk/xsp/ChangeLog 2005-04-01 21:08:14 UTC (rev 42481)
+++ trunk/xsp/ChangeLog 2005-04-01 22:15:46 UTC (rev 42482)
@@ -1,3 +1,9 @@
+2005-04-01 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * server/ApplicationServer.cs: use a foreground thread to stop the
+ server instead of one from the threadpool. Patch from Rob Lyon that
+ fixes bug #73357.
+
2005-03-18 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* server/ModMonoApplicationHost.cs: the lockfile is to be removed even
Modified: trunk/xsp/server/ApplicationServer.cs
===================================================================
--- trunk/xsp/server/ApplicationServer.cs 2005-04-01 21:08:14 UTC (rev
42481)
+++ trunk/xsp/server/ApplicationServer.cs 2005-04-01 22:15:46 UTC (rev
42482)
@@ -279,10 +279,13 @@
stop = true;
webSource.Dispose ();
- ThreadPool.QueueUserWorkItem (new WaitCallback
(RealStop));
+
+ // A foreground thread is required to end cleanly
+ Thread stopThread = new Thread (new ThreadStart
(RealStop));
+ stopThread.Start ();
}
- void RealStop (object notused)
+ void RealStop ()
{
runner.Abort ();
listen_socket.Close ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches