Sure. No problme.


Actually rfc5861 plugin(
https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;a=tree;f=plugins/experimental/rfc5861;h=d442b353557529a80cd6c4fca202095806eb3822;hb=HEAD)
is the base code of my plugin. What I did is to change the condition of
triggering download from TS_CACHE_LOOKUP_HIT_STALE to TS_CACHE_LOOKUP_MISS.



and I attaché my codes. Thanks.


2013/4/17 BRA Lento <[email protected]>

> Hi,
>
>   I need to do this kind of plugin to my server.
>   It's a private plugin or I could share the code with us ?
>   I'm really interested in looking it.
>   Thanks.
>
>   Best Regards,
>
> Bob
>
>
> 2013/4/16 Leif Hedstrom <[email protected]>
>
>> On 4/16/13 9:09 AM, Yongming Zhao wrote:
>>
>>> the default =2 is set to threading session sharing, that is consider to
>>> be better performance, and set to =1 is using the global session pool, that
>>> is not that bad unless you can tell that the performance is noticeable, in
>>> some case, the global session pool is much safer :D
>>>
>>> BTW, that is a problem we should fix, I think TS-1590 as the same type
>>> of failure.
>>>
>>
>> Ah, great. Please update TS-1590 with this information, I'll mark that
>> one for v3.3.3. This needs to be fixed for v3.4 IMO (and yes, blame me! :-).
>>
>> Cheers,
>>
>> -- Leif
>>
>>
>>> 在 2013-4-16,下午4:41,오재경 <[email protected] <mailto:[email protected]>>
>>> 写道:
>>>
>>>
>>>  sorry. i forgot to write the title..
>>>>
>>>> hi everyone.
>>>>
>>>> I made a plugin. it calls TSHttpConnect and download a contents when it
>>>> meets a range request. as you know, ats doesn't cache partial request.
>>>> that's why i made the plugin to trigger full download for a range request.
>>>>
>>>> proxy.config.http.share_**server_sessions makes a problem. default
>>>> value is 2 and ATS always crash when the plugin trigger download.
>>>>
>>>> but with 1, ATS works fine with my plugin.
>>>>
>>>> i digged the source what happens when i call TSHttpConnect.
>>>>
>>>> if i set share_server_sessions 2 _acquire_session is called with
>>>> ethread parameter. if 1 _acquire_session is called with global bucket.
>>>>
>>>> my question is ..is it ok if i set share_server_sessions 1 instead of
>>>> default value 2 ?
>>>>
>>>> No problem in performance? No problem in running ATS in 24/7 ?
>>>>
>>>> Thanks.
>>>>
>>>
>>>
>>
>

Attachment: bgcache.tar.gz
Description: GNU Zip compressed data

Reply via email to