Re: Accurately tracking data transferred via a plugin?

2012-08-16 Thread Conan
There are two API: TSHttpTxnClientRespBodyBytesGet and TSHttpTxnClientRespHdrBytesGet (can be invoked in TS_HTTP_TXN_CLOSE_HOOK in my test). I think their returned value are % and %. Content-Length is larger than transfered length, because user-agent can easily abort request. On Fri, Aug 17, 201

Re: [VOTE] Release v3.1.4

2012-05-30 Thread Conan
This is not a bug. But I find there is no way to turn off the debug string in Via header. https://issues.apache.org/jira/browse/TS-973?focusedCommentId=13285471&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13285471 On Wed, May 30, 2012 at 12:58 PM, Leif Hedstrom

Re: marshall buffers for TSRemapRequestInfo members

2012-04-12 Thread Conan
hi, I use requestBufp to read the request. But mapFromUrl/requestUrl will be changed in a situation, which is not what you want. here is my email last year. >From Conan Subject remap plugin question when pristine_host_hdr is enabled Date Fri, 29 Jul 2011 15:25:25 GMT In proxy/http/re

Re: 3.0.4 stable release

2012-02-21 Thread Conan
anyone add TS-824? that works for me on my custom 3.0.x version. On Wed, Feb 22, 2012 at 10:56 AM, Brian Geffon wrote: > Hello All, > We are preparing for a 3.0.4 stable release, if anyone has backport > proposals please add them to the STATUS and JIRA. As always don't forget to > vote on propo

Re: get combo_handler compiled and work

2011-12-14 Thread Conan
hi igalic. 2011/12/15 Igor Galić > > > - Original Message - > > hi, > > Hi Conan, > > > I modified the combo_handler's code (almost API migration work) , and > > it works. If you want a try, here is the reference. > > IIRC, getting combo_

get combo_handler compiled and work

2011-12-14 Thread Conan
hi, I modified the combo_handler's code (almost API migration work) , and it works. If you want a try, here is the reference. Combo_handler requires ESI's code and I can't make ESI work, so I copy ESI's code to combo_handler's directory and write a Makefile. combo_handler |combo_handler.cc |

"416 Requested Range Not Satisfiable" is not negative response?

2011-09-19 Thread Conan
If origin server return 416 as well as Cache-Control: max-age=100, ATS will cache the bad response. ( I disable proxy.config.http.negative_caching_enabled) Seem 416 is not "negative response", or turning off negative_caching is not prior to "Cache-Control".

How to deal with bad rule of remap.config when reloading?

2011-08-18 Thread Conan
Hi, Currently(3.0.1), traffic_server will exit if exists bad rules in remap.config, whenever startup or reload ( traffic_line -x ). Bad rules I found: 1. duplicate map rule ( ATS 2.x will use first one and ignore the left ). 2. add a remap plugin which is not exist. 3. return TS_ERROR in TSRemapN

Re: Can ATS relay "Proxy-Authorization" header?

2011-08-06 Thread Conan
Yes, TS-906. 2011/8/7 Leif Hedstrom > On 08/06/2011 12:42 AM, Conan wrote: > >> in HttpConfig.cc, why ATS doesn't read >> "proxy.config.http.forward.**proxy_auth_to_parent" >> >> line 1221: >> c.fwd_proxy_auth_to_parent = 0 >>

Re: Can ATS relay "Proxy-Authorization" header?

2011-08-05 Thread Conan
in HttpConfig.cc, why ATS doesn't read "proxy.config.http.forward.proxy_auth_to_parent" line 1221: c.fwd_proxy_auth_to_parent = 0 line 1439: params->fwd_proxy_auth_to_parent = 0; 2011/8/5 Conan > hi, > In my case, I want to pass UA(or child proxy)'s "Pr

remap plugin question when pristine_host_hdr is enabled

2011-07-29 Thread Conan
In proxy/http/remap/RemapPlugins.cc, line 147 say "plugin did not change host, port or path, copying from mapping rule" when TSRemapDoRemap return TSREMAP_NO_REMAP or TSREMAP_NO_REMAP_STOP. If url_remap.pristine_host_hdr is enabled, I think host should not be copied(changed). This affects mapFrom

Re: [VOTE] Release Apache Traffic Server v2.1.9

2011-05-29 Thread Conan
Yes, that fixed it. I'v filed this bug. 2011/5/30 Leif Hedstrom > On 05/29/2011 11:53 AM, Conan wrote: > >> error when compile any plugins with tsxs: (test on ubuntu 10.04 32bit / >> mac >> os 10.6.7 64bit) >> >> /home/ts/ts-2.1.9/bin/tsxs -c h

Re: [VOTE] Release Apache Traffic Server v2.1.9

2011-05-29 Thread Conan
error when compile any plugins with tsxs: (test on ubuntu 10.04 32bit / mac os 10.6.7 64bit) /home/ts/ts-2.1.9/bin/tsxs -c hello.c -o hello.so compiling hello.c -> hello.lo In file included from hello.c:25: /home/ts/ts-2.1.9/include/ts/ts.h:616: error: expected specifier-qualifier-list before '

Re: multiple url assigned to one object?

2011-04-26 Thread Conan Wang
ect? > for example: > http://www.example.com/abc.jpg?id=1,http://www.example.com/abc.jpg?id=2assign > to > http://www.example.com/abc.jpg object? > Thanks > > -- Regards, Conan