You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Manas Agarwal <ma...@gmail.com> on 2013/01/28 18:34:38 UTC

Regarding TSCont

Hi All,

I create a Cont in Cache Read request and call TSCacheRead within read
request.
Sometimes the cont is called immediately and sometimes it is called
afterwards.
ie after read request or post remap events.

Can I get a somehow a deterministic behavior in this.

Regards,
Manas

Re: Regarding TSCont

Posted by James Peach <ja...@me.com>.
On Jan 28, 2013, at 9:34 AM, Manas Agarwal <ma...@gmail.com> wrote:

> Hi All,
> 
> I create a Cont in Cache Read request and call TSCacheRead within read request.
> Sometimes the cont is called immediately and sometimes it is called afterwards.
> ie after read request or post remap events.

TSCacheRead() returns a TSAction. It might complete in line, and you must use TSActionDone() to check for this case. There is no guarantee WRT the plugin hooks; the continuation might get called at any time.

> Can I get a somehow a deterministic behavior in this.
> 
> Regards,
> Manas