Add a little bit more logging.

git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@820 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
Richard Alam 2008-12-27 17:25:52 +00:00
parent 466244240f
commit 7cf501e4cd
4 changed files with 7 additions and 0 deletions

View File

@ -14,5 +14,6 @@
<classpathentry excluding=".svn/*" kind="src" path="webapps/midiDemo/WEB-INF/src"/>
<classpathentry excluding=".svn/*" kind="src" path="webapps/adminPanel/WEB-INF/src"/>
<classpathentry kind="src" path="webapps/bwcheck/WEB-INF/src"/>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/red5"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@ -55,6 +55,9 @@
<logger name="org.red5.server">
<level value="WARN" />
</logger>
<logger name="org.red5.server.adapter">
<level value="INFO" />
</logger>
<logger name="org.red5.server.Client">
<level value="INFO" />
</logger>

View File

@ -993,6 +993,7 @@ public class MultiThreadedApplicationAdapter extends StatefulScopeWrappingAdapte
* Schedules new ghost connections cleanup using current cleanup period.
*/
public void scheduleGhostConnectionsCleanup() {
log.info("Scheduling ghost connections cleanup.");
IScheduledJob job = new IScheduledJob(){
public void execute(ISchedulingService service) throws CloneNotSupportedException {
killGhostConnections();
@ -1028,6 +1029,7 @@ public class MultiThreadedApplicationAdapter extends StatefulScopeWrappingAdapte
// Time to live exceeded, disconnect
if( conn.getLastPingTime() > clientTTL * 1000 ){
log.warn("Killing ghost connection {}", conn);
disconnect( conn, scope );
}
}

View File

@ -859,6 +859,7 @@ public abstract class RTMPConnection extends BaseConnection implements
/** {@inheritDoc} */
public void ping() {
log.info("Pinging client");
long newPingTime = System.currentTimeMillis();
if (lastPingSent == 0) {
lastPongReceived = newPingTime;