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

List:       helix-server-cvs
Subject:    [Server-cvs] engine/session clientsession.cpp, 1.174.2.11,
From:       svaidhya () helixcommunity ! org
Date:       2010-02-28 8:30:33
Message-ID: 201002280830.o1S8UaSx032387 () mailer ! progressive-comp ! com
[Download RAW message or body]

Update of /cvsroot/server/engine/session
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv23419

Modified Files:
      Tag: SERVER_14_0
	clientsession.cpp 
Log Message:
Synopsis
========
CR: Bug 258865: Connected_time always increments for proxy connections with \
LoggingStyle 8

Branch : SERVER_14_0_RN, HEAD
Suggested Reviewer: Anyone

Description
===========

With cached mode on proxy, when a file is first requested (not in cache), the proxy \
creates Session with the server and calls ClientSession::begin to download each \
chunk. Every time ::begin is called, the SessionStartTime is reset.  Hence the \
connected_time, calculated on ClipDone, as CurrentTime - SessionStartTime, is wrongly \
calculated from the last time ::begin was called instead of first.

Fix: Don.t re-iniliaze SessionStartTime if already initialized.

Files Changed:
============
./server/emgine/session/clientsession.cpp

Testing Performed
=================
Unit Tests:
- None

Integration Tests:
- 

Leak Tests:
- None.

Performance Tests:
- None

Build verified: win32-i386-vc7
Platform tested : win32-i386-vc7




Index: clientsession.cpp
===================================================================
RCS file: /cvsroot/server/engine/session/clientsession.cpp,v
retrieving revision 1.174.2.11
retrieving revision 1.174.2.12
diff -u -d -r1.174.2.11 -r1.174.2.12
--- clientsession.cpp	26 Feb 2010 23:18:31 -0000	1.174.2.11
+++ clientsession.cpp	28 Feb 2010 08:30:30 -0000	1.174.2.12
@@ -2853,9 +2853,12 @@
     {
         log_start_time();
 
+        if (m_ulClipStartTicks == 0)
+        {
         //Set Clip Start Time
         m_ulClipStartTicks = HX_GET_TICKCOUNT();
     }
+    }
 
     // Notify all Allowance plugins
     OnBegin();


_______________________________________________
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