trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject svn commit: r1143121 - in /trafficserver/traffic/trunk: CHANGES proxy/InkAPI.cc proxy/api/ts/experimental.h
Date Tue, 05 Jul 2011 16:09:31 GMT
Author: zwoop
Date: Tue Jul  5 16:09:31 2011
New Revision: 1143121

URL: http://svn.apache.org/viewvc?rev=1143121&view=rev
Log:
TS-864 Need more information from CacheHttpInfo (req time, resp time, size).

Author: William Bardwell
Review: Leif

Modified:
    trafficserver/traffic/trunk/CHANGES
    trafficserver/traffic/trunk/proxy/InkAPI.cc
    trafficserver/traffic/trunk/proxy/api/ts/experimental.h

Modified: trafficserver/traffic/trunk/CHANGES
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/CHANGES?rev=1143121&r1=1143120&r2=1143121&view=diff
==============================================================================
--- trafficserver/traffic/trunk/CHANGES (original)
+++ trafficserver/traffic/trunk/CHANGES Tue Jul  5 16:09:31 2011
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 
 Changes with Apache Traffic Server 3.1.0
+  *) [TS-864] Need more information from CacheHttpInfo (req time, resp time,
+  size). Author: William Bardwell.
+
   *) [TS-860] Built in error for host not found looks like Internet Explorer
   error. Author: William Bardwell.
 

Modified: trafficserver/traffic/trunk/proxy/InkAPI.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/InkAPI.cc?rev=1143121&r1=1143120&r2=1143121&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/InkAPI.cc (original)
+++ trafficserver/traffic/trunk/proxy/InkAPI.cc Tue Jul  5 16:09:31 2011
@@ -3926,6 +3926,27 @@ TSCacheHttpInfoRespGet(TSCacheHttpInfo i
   sdk_sanity_check_mbuffer(*bufp);
 }
 
+time_t
+TSCacheHttpInfoReqSentTimeGet(TSCacheHttpInfo infop)
+{
+  CacheHTTPInfo *info = (CacheHTTPInfo *) infop;
+  return info->request_sent_time_get();
+}
+
+time_t
+TSCacheHttpInfoRespReceivedTimeGet(TSCacheHttpInfo infop)
+{
+  CacheHTTPInfo *info = (CacheHTTPInfo *) infop;
+  return info->response_received_time_get();
+}
+
+int64_t
+TSCacheHttpInfoSizeGet(TSCacheHttpInfo infop)
+{
+  CacheHTTPInfo *info = (CacheHTTPInfo *) infop;
+  return info->object_size_get();
+}
+
 void
 TSCacheHttpInfoReqSet(TSCacheHttpInfo infop, TSMBuffer bufp, TSMLoc obj)
 {

Modified: trafficserver/traffic/trunk/proxy/api/ts/experimental.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/api/ts/experimental.h?rev=1143121&r1=1143120&r2=1143121&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/api/ts/experimental.h (original)
+++ trafficserver/traffic/trunk/proxy/api/ts/experimental.h Tue Jul  5 16:09:31 2011
@@ -48,6 +48,9 @@ extern "C"
   tsapi void TSCacheHttpInfoKeySet(TSCacheHttpInfo infop, TSCacheKey key);
   tsapi void TSCacheHttpInfoSizeSet(TSCacheHttpInfo infop, int64_t size);
   tsapi int TSCacheHttpInfoVector(TSCacheHttpInfo infop, void *data, int length);
+  tsapi time_t TSCacheHttpInfoReqSentTimeGet(TSCacheHttpInfo infop);
+  tsapi time_t TSCacheHttpInfoRespReceivedTimeGet(TSCacheHttpInfo infop);
+  int64_t TSCacheHttpInfoSizeGet(TSCacheHttpInfo infop);
 
   /* Do not edit these apis, used internally */
   tsapi int TSMimeHdrFieldEqual(TSMBuffer bufp, TSMLoc hdr_obj, TSMLoc field1, TSMLoc field2);



Mime
View raw message