How TS find object from object database (cache)

2011-03-11 Thread ChangCheng
Hi guys:I'm glad to join this group, i'm currently a college senior student with a little extra bit of time on my hands and wanted to get a little experience with TS.Currently,I have accrued some basic knowledge through go through TS Administrator's Guide.For now, there is a problem i can't u

RE: How TS find object from object database (cache)

2011-03-11 Thread ChangCheng
s are more complicated as well. > > If you want pointers or have more specific questions I'll try to help you. > I you want to > know about HTTP stuff, perhaps someone else can help. > > Some details of the directory structure were just covered here (see an > earlier p

Can't not load file (INKfopen issue)

2011-03-14 Thread ChangCheng
Hi guys. I just got some problem when i follow the SDK Guide for The Append-Transform Plugin. i Compile plugin source code(from example folder), creating a shared library. then i copy the append-transform.so into /usr/local/libexec/trafficserver/ (the default plugin floder), then, i configer m

RE: Can't not load file (INKfopen issue)

2011-03-14 Thread ChangCheng
Hi, Yes, this is with V2.0.1 > Date: Mon, 14 Mar 2011 11:57:23 -0600 > From: zw...@apache.org > To: dev@trafficserver.apache.org > CC: ccai...@msn.com > Subject: Re: Can't not load file (INKfopen issue) > > On 03/14/2011 11:53 AM, ChangCheng wrote: > > Hi guys

RE: Can't not load file (INKfopen issue)

2011-03-15 Thread ChangCheng
> On 03/14/2011 11:53 AM, ChangCheng wrote: > > Hi guys. I just got some problem when i follow the SDK Guide for The > > Append-Transform Plugin. i Compile plugin source code(from example folder), > > creating a shared library. then i copy the append-transform.so into > &

RE: Can't not load file (INKfopen issue)

2011-03-18 Thread ChangCheng
. this will get "can't not load file " error. Thanks again! > Date: Thu, 17 Mar 2011 20:49:49 -0600 > From: zw...@apache.org > To: dev@trafficserver.apache.org > CC: ccai...@msn.com > Subject: Re: Can't not load file (INKfopen issue) > > On 03/15/2011 05:40 A

Cache Plugin content not exist in API Guide

2011-03-28 Thread ChangCheng
Hi: Who konws why there is no content for Cache Plugin? anyway, the example for cache_plugin is doesn't work, even can't not complie ! (Version 2.0.1)Any suggestion: where can i get details for cache plugin? Thanks

Need help for Cache Plugin

2011-03-28 Thread ChangCheng
Hi guys:I am trying to write a plugin that support to record url for each cacheable object when the object be cached, there is no content for cache plugin in API Guide, so i would like to get some help from here, Any suggestion for this problem? Thanks!Anyway, i konw there is someway can see th

RE: Need help for Cache Plugin

2011-03-28 Thread ChangCheng
Thanks your replay, actually, i would like to know how to write this plug-in for my request , because for my project, i not only support to record url for cacheable object but also need to do some else with this plug-in. so Any suggestion for my specific request?or even where can i get such tut

How can i get cachable status under TS_HTTP_READ_RESPONSE_HDR status

2011-03-30 Thread ChangCheng
Hi:I am trying to write plugin to do some work under object cachable status when the http state machine in HTTP_READ_RESPONSE_HDR.Is three any method can check object cahable? or any suggestion for me how can i get object cachable status?Thanks

RE: How can i get cachable status under TS_HTTP_READ_RESPONSE_HDR status

2011-04-01 Thread ChangCheng
Hey guys:This problem stop me continue write my plugin. , I have read ts.h and InkAPI.cc, but i can't find any solutions to reach cacheable object status after HTTP_READ_RESPONSE_HDR.This plugin called after a TS_HTTP_READ_RESPONSE_HDR_HOOK, it's support to do some work for object which can b

Probelm with use TSHttpHdrUrlSet

2011-04-13 Thread ChangCheng
Hi users;i want to set url(www.example.com) for http header, how do i use TSHttpHdrUrlSet. the prototype is :TSReturnCode TSHttpHdrUrlSet (INKMBuffer bufp, INKMLoc hdr_loc, INKMLoc url)the problem is INKMloc url is object, how do i sign my url value(char *) to this object?Thanks

RE: Probelm with use TSHttpHdrUrlSet

2011-04-13 Thread ChangCheng
7 -0600 > From: zw...@apache.org > To: dev@trafficserver.apache.org > CC: ccai...@msn.com > Subject: Re: Probelm with use TSHttpHdrUrlSet > > On 04/13/2011 11:19 AM, ChangCheng wrote: > > Hi users;i want to set url(www.example.com) for http header, how do i use > > TSH

multiple url assigned to one object?

2011-04-26 Thread ChangCheng
Hi: i would like to know is possible to create to plug in support to assign multiple url hash key to one cacheable object? for example: http://www.example.com/abc.jpg?id=1,http://www.example.com/abc.jpg?id=2 assign to http://www.example.com/abc.jpg object? Thanks

RE: multiple url assigned to one object?

2011-04-26 Thread ChangCheng
ache.org/jira/browse/TS-731>here is the plugin. > > 在 2011年4月26日 下午8:34,ChangCheng 写道: > > > > > Hi: > > i would like to know is possible to create to plug in support to assign > > multiple url hash key to one cacheable object? > > for example: > &g

RE: multiple url assigned to one object?

2011-04-26 Thread ChangCheng
r.apache.org > > ChangCheng wrote: > > > > Thanks your replay: > > Actually, i have looked this plug-in, this plug-in did rewrite hash key > > from modified url to normal url hash key, but for original cacheable > > object, it's still only have original hash key to assign

How can TS save and remove object from cache?

2011-04-27 Thread ChangCheng
Hi: I have some query about mechanisms for save and remove data from cache No1: I believe there is a big hash table when the TS Running in memory, i would like to know when and how TS save this table into disk? Does ATS save it into disk when this table changed? or save it into disk in fixed-t

TS Error->OpenReadHead failed?

2011-05-03 Thread ChangCheng
Hi: For some reason. Every request Url have been modified before my ATS accept. eg: www.example.com -> www.example.com&xxid=1. So i have a plug-in running on my ATS to strip out this modified parameter, back to normal URL. I did a stress test for ATS over night, i have a script to continue reque

Possible modify cached object HTTP MIME fields?

2011-05-09 Thread ChangCheng
Hi : i konw we can retrieve and modify information about HTTP MIME fields by using MIME header functions. i would like to konw can i modify cached object header use these functions? i try to use these method to modify cached object header which get from TSHttpTxnCachedRespGet. but it seem to d

Problem with TSCacheRead

2011-05-12 Thread ChangCheng
Hi: I have written a plug to write and read entry to the cache and from the cache on the HTTP_SEND_RESPONSE_HDR_HOOK. It's seem to work well for write, but i have a problem with TSCacheRead, if the object which i read is not in the cache, how do i solve this problem. i try to call TSHttpTxnReen

ATS Error Code

2011-05-18 Thread ChangCheng
Hi: I have write a plug-in to read, write and remove cache from ATS, I got this error code when i have new transaction to read cache from ATS. FATAL: InkAPI.cc:968: failed assert `!"Plugin tries to use a continuation which is deleted"` /usr/local/bin/traffic_server - STACK TRACE: /usr/local/l

Segmentation fault

2011-05-27 Thread ChangCheng
Hi :I have written a plug to write,read and remove an entry to/from the cache on the HTTP_SEND_RESPONSE_HDR_HOOK. Its seem to work well, but i did some stress test (java application mock user request page), mutiple thread continue request page from ATS. i got the error code down below :NOTE: T

ATS prefetch feature

2011-06-02 Thread ChangCheng
Hi:I saw there is a plug-in called :prefetch in example, but it seem to can't compile. i get this error when i make itmake: *** No rule to make target `prefetch.c', needed by `prefetch.lo'. Stop.who can give some introduction for prefetch feature in ATS? Does this feature support to analy

Small Bug in protocol plugin

2011-09-21 Thread ChangCheng
Hi developers, I found there is a small bug in example protocol plugin.Please see the line 182 in file TxnSM.cip_addr.sin_port = txn_sm->q_server_port;shoule be changed to ip_addr.sin_port = htons(txn_sm->q_server_port);.The bug cause to TSNetConnect error!Pleasse fix it!ThanksCheng