Bugs item #1491210, was opened at 2006-05-18 15:51
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1491210&group_id=31650
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tasks
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Submitted By: J. Lent (j_lent)
Assigned to: Nobody/Anonymous (nobody)
Summary: <servicecontroller> stop timeout bug
Initial Comment:
The servicecontroller task uses the DotNET
ServiceController class to stop a service. It does so
by first calling ServiceController.Stop() and then
ServiceController.WaitForStatus() to wait for a
specified timeout. It would appear that the behavior
of Stop() is to wait a default 60 seconds and then
throw an InvalidOperationException noting that the
service did not stop in a reasonable time. This
behavior would keep the code from reaching the
WaitForStatus() call on the next line, making timeout
non-functional for anything greater than 60 seconds.
So, I'm thinking that the following:
try
{
...
serviceController.Stop();
serviceController.WaitForStatus(
ServiceControllerStatus.Stopped,
TimeSpan.FromMilliseconds(this.Timeout));
}
catch (BuildException exception1)
{
...
}
catch (Exception exception2)
{
...
}
Should look more like this:
try
{
...
try
{
serviceController.Stop();
}
catch(InvalidOperationException ex)
{
...
}
serviceController.WaitForStatus(
ServiceControllerStatus.Stopped,
TimeSpan.FromMilliseconds(this.Timeout));
}
catch (BuildException exception1)
{
...
}
catch (Exception exception2)
{
...
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1491210&group_id=31650
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
nant-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-developers