You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by 928991159 <92...@qq.com> on 2018/07/02 08:05:31 UTC
回复: new developer, about plugin
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"<zz...@apache.org>;
发送时间: 2018年6月29日(星期五) 晚上11:25
收件人: "928991159"<92...@qq.com>;
抄送: "dev"<de...@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 <92...@qq.com>:
littler than reality, reality is about 300,but use API about 200
发自我的iPhone
------------------ Original ------------------
From: Alan Carroll <so...@oath.com.INVALID>
Date: 周五,6月 29,2018 8:16 下午
To: dev <de...@trafficserver.apache.org>
Subject: Re: new developer, about plugin
In what way is the data incorrect? Is it too large, always zero, random?