trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "928991159" <928991...@qq.com>
Subject 回复: new developer, about plugin
Date Mon, 02 Jul 2018 08:05:31 GMT
Hi,
    i have found that using picture's api  get the  cached orgin server reponse size by gdb
in TS_EVENT_HTTP_CACHE_LOOKUP_COMPLETE  event Phase. but i really want to get that client
receive cached reponse header size.what shoule i do?



for example:
cached  origin server response header:


          HTTP/1.1 200 OK
          Server: nginx/1.9.7
          Date: Mon, 02 Jul 2018 04:00:07 GMT
          Content-Type: application/vnd.apple.mpegurl
          Content-Length: 272
          Last-Modified: Wed, 20 Dec 2017 07:23:49 GMT
          Connection: keep-alive
          ETag: abcdefg
          Accept-Ranges: bytes


 client received cached reponse header:    -> i want to get this length ,what should i
do ?

          HTTP/1.0 200 OK
         Server: ATS/6.2.1
         Date: Mon, 02 Jul 2018 04:00:07 GMT
         Content-Type: application/vnd.apple.mpegurl
          Content-Length: 272
         Last-Modified: Wed, 20 Dec 2017 07:23:49 GMT
          ETag: abcdefg
         Accept-Ranges: bytes
        Age: 12352
        Via: http/1.1 S-LAB-53 (ApacheTrafficServer/6.2.1 [cHs f ])


 




------------------ 原始邮件 ------------------
发件人: "zzz"<zzz@apache.org>;
发送时间: 2018年6月29日(星期五) 晚上11:25
收件人: "928991159"<928991159@qq.com>;
抄送: "dev"<dev@trafficserver.apache.org>; 
主题: Re: new developer, about plugin



Hi,Have you tried to enable the debug tag[1] as "http" and check the log?
Or even better, please try to use a debugger to see which step goes wrong.


[1] https://docs.trafficserver.apache.org/en/6.2.x/developer-guide/debugging/debug-tags.en.html


2018-06-29 7:30 GMT-07:00 928991159 <928991159@qq.com>:
littler than reality, reality is about 300,but use API about 200
 
 
 发自我的iPhone
 
 ------------------ Original ------------------
 From: Alan Carroll <solidwallofcode@oath.com.INVALID>
 Date: 周五,6月 29,2018 8:16 下午
 To: dev <dev@trafficserver.apache.org>
 Subject: Re: new developer, about plugin
 
 
 
 In what way is the data incorrect? Is it too large, always zero, random?
Mime
  • Unnamed multipart/mixed (inline, 8-Bit, 0 bytes)
View raw message