On 25 Oct 2013, at 16:56, James Peach wrote:

> On Oct 24, 2013, at 10:59 PM, Carlos Guerreiro <carlos.h.guerre...@gmail.com> 
> wrote:
> 
>> Hi,
>> 
>> What is the correct way to abort an HTTP transaction in a transformation
>> plugin, while transforming the message body?

I struggled with the same issue, and as far as I can tell it's not possible
within the public API.  We can handle events, but we can't originate them.

> I'm guessing that you would inject the error into the transformation chain 
> using TSContCall(..., TS_EVENT_ERROR, ...). I see this being done in 
> plugins/gzip/gzip.cc, plugins/experimental/esi/esi.cc and 
> lib/atscppapi/src/TransformationPlugin.cc.

That seems to answer a slightly different question.  You're still (from the
Client's perspective) processing normally, but just returning an error
on completion.

-- 
Nick Kew

Reply via email to