[Red5devs] [PATCH 13 of 15] more verbose closing connections

mabrek mabrek at gmail.com
Tue Aug 26 11:05:39 PDT 2008


diff -r 0fc963e25081 -r 5a36e8d099f4 src/org/red5/server/net/rtmp/RTMPConnection.java
--- a/src/org/red5/server/net/rtmp/RTMPConnection.java	Thu Jul 31 15:09:48 2008 +0400
+++ b/src/org/red5/server/net/rtmp/RTMPConnection.java	Tue Aug 05 16:24:47 2008 +0400
@@ -1088,7 +1088,9 @@
 				}
 				service.removeScheduledJob(keepAliveJobName);
 				keepAliveJobName = null;
-				log.warn("Closing {} due to too much inactivity ({}).", RTMPConnection.this, (lastPingSent - lastPongReceived));
+				log.warn("Closing {}, with id {}, due to too much inactivity ({}).", 
+						new Object[] {RTMPConnection.this, getId(), 
+							(lastPingSent - lastPongReceived)});
 				onInactive();
 				return;
 			}
@@ -1109,6 +1111,8 @@
 			waitForHandshakeJob = null;
 			waitForHandshakeService = null;
 			// Client didn't send a valid handshake, disconnect.
+			log.warn("Closing {}, with id {} due to long handshake", 
+					RTMPConnection.this, getId());
 			onInactive();
 		}
 





More information about the Red5devs mailing list