You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the red5-shutdown.bat script on windows 7, the appStop() is not being triggered.
Basic code example is as follows:
public class myApplicationTest extends org.red5.server.adapter.MultiThreadedApplicationAdapter
{
@Override public boolean appStart(IScope app) {
System.out.println("App started." ); // <== WORKS FINE
if (super.appStart(app) == false) {
return false;
}
return true;
}
@Override public void appStop(IScope app) {
System.out.println("Shut down started" ); // <== NEVER CALLED
super.appStop(app);
}
}
I believe this is an issue in 1.0.1 (and perhaps since) as well. The application logs shutdown events, and looking back to when it was in 1.0.1, I do not see any shutdown event in those logs.
*** On a related side note the reason I found this bug is that I need stream recordings to be nicely closed when Red5 is shutdown (i.e. the .ser copied to a .flv). Assuming appStop() is triggered as it should be, will Red5 automatically close all open recordings or does that need to be done manually? I would like to confirm what default behavior should/will be.
The text was updated successfully, but these errors were encountered:
This should be resolved on the latest commit; if you are not on HEAD, you can work around this issue by adding the destroy-method attribute and specifying its value as "unregister" to your WebScope bean in your applications red5-web.xml file. Lastly, here is a related wiki entry https://github.com/Red5/red5-server/wiki/Log-Messages
Issue was found using the nightly build of 1.0.4 (as of this date) from https://builds.apache.org/job/Red5-server/changes. It may affect versions since 1.0.1 (noted at the end).
When using the red5-shutdown.bat script on windows 7, the appStop() is not being triggered.
Basic code example is as follows:
I believe this is an issue in 1.0.1 (and perhaps since) as well. The application logs shutdown events, and looking back to when it was in 1.0.1, I do not see any shutdown event in those logs.
*** On a related side note the reason I found this bug is that I need stream recordings to be nicely closed when Red5 is shutdown (i.e. the .ser copied to a .flv). Assuming appStop() is triggered as it should be, will Red5 automatically close all open recordings or does that need to be done manually? I would like to confirm what default behavior should/will be.
The text was updated successfully, but these errors were encountered: