[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-server-cvs
Subject:    [Server-cvs] engine/context/pub server_stats.h,1.27,1.28
From:       srao () helixcommunity ! org
Date:       2007-05-30 7:29:56
Message-ID: 200705300730.l4U7U4jG029846 () mailer ! progressive-comp ! com
[Download RAW message or body]

Update of /cvsroot/server/engine/context/pub
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv14487/pub

Modified Files:
	server_stats.h 
Log Message:
Synopsis
========
Fixes PR 186911: Siemens-Post:rsSessionEntry values not accurate (This is propagation of PR143602)

Branches: HEAD
Suggested Reviewer: Darrick


Description
===========
The stat variables SendingTime, FailedResends, SuccessfulResends are always reporting zero because
stat object is getting updated only once when the client is disconnecting. 


Fix:
===============
implemented a new inline method UpdateSucessFailureResendCount() in class RTSPServerProtocol to
update these stats variables, This new method get called only when uNakListCount > 0 from
RTSPServerProtocol::::OnACK() and is responsible for updating SuccessfulResends and FailedResends of
QoSInfo. 


SendingTime is simply the difference between clip start time and current time. 
So I am populating starting time in SessionStats::SetSessionStartTime() and calculating elapsed time
in function SessionStats::GetSendingTime() which get called by SNMP to retrieve SendingTime. 


Files Affected
==============
/server/engine/context/server_stats.cpp
/server/engine/context/pub/server_stats.h
/server/protocol/rtsp/rtspserv.cpp
/server/protocol/rtsp/pub/rtspserv.h

Testing Performed
=================
1)
enabled templatized logging with template
"Failed :%Client.*.Session.*.FailedResends%\t Sucess:
%Client.*.Session.*.SuccessfulResends%\tSendingTime:%Client.*.Session.*.SendingTime%\n"

and observed that custom log is getting updated with proper values for the specified interval. 

2) enabled SNMP and observed that SendingTime parameter is getting updated correctly.

Build verified: win32-i386-vc6


QA Hints
===============
1. Configure SNMP and start monitoring the required parameters. 

Note: This fix is to provide correct values of SuccessfulResends , FailureResends and SendingTime to
SNMP. SNMP reads these values from the STATS object. This fix only updates stats to provide correct
values to SNMP. Registry functionality would not be modified with this fix. It gets updated only
when session disconnects as designed earlier.



Index: server_stats.h
===================================================================
RCS file: /cvsroot/server/engine/context/pub/server_stats.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- server_stats.h	21 Dec 2006 05:02:21 -0000	1.27
+++ server_stats.h	30 May 2007 07:29:54 -0000	1.28
@@ -129,6 +129,7 @@
 
     IHXBuffer* m_pHost;
     IHXBuffer* m_pSessionStartTime;
+    UINT32 m_pSessionStartTicks;
     IHXBuffer* m_pURL;
     IHXBuffer* m_pLogURL;
     IHXBuffer* m_pLogStats;


_______________________________________________
Server-cvs mailing list
Server-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/server-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic