Hi there,

We've a usage scenario for the ATS when in case of some "fatal" errors we
need to redirect the client requests to another place via HTTP 302 instead
of returning some error response.
For this reason we need to detect various errors which can occur when
connecting to the origin server, like DNS failure, TCP connect failure,
etc. We are not interested in the particular error, we just need to know if
an error has occurred and it's not an error response from the origin server.

So far, the best place I could find for this is the
TS_HTTP_SEND_RESPONSE_HDR_HOOK
where the response status can be checked via TSHttpTxnStatusGet and
TSHttpTxnServerStateGet and thus finding out that there have been some
"internal" error.

My question is if this is the best hook and the best approach/APIs to use
for this task?

Thanks,
Pavel.

Reply via email to