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?
> So that origin server and client sockets are closed ASAP and everything is
> cleaned up properly in the entire transformation chain.

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.

Interestingly, most of these examples use that pattern to propagate errors, but 
few (none?) use it to generate errors.

J

Reply via email to