trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Carroll <solidwallofc...@oath.com>
Subject Re: How to catch 502 Error
Date Mon, 25 Sep 2017 16:55:27 GMT
It should be possible to detect this the SEND_RESPONSE_HDR_HOOK. Be sure
you've attached to that hook, to make sure you get the event at the
appropriate time.

On Sat, Sep 23, 2017 at 8:35 PM, Velusamy, Gandhimathi <
gvelusam@central.uh.edu> wrote:

> Hi,
> I am working on Trafficserver-7.0.0.
>
> In  my plugin I want to handle the dead origin server.
>
> I am trying to read the  HTTP Transaction status through
> “TSHttpHdrStatusGe()t” after the function call TSHttpTxnServerRespGet()
> results in success.
>
> but I could not get it success in  both “TS_EVENT_HTTP_SEND_RESPONSE_HDR"
> and TS_EVENT_HTTP_READ_RESPONSE_HDR” event handlers.
> I am able to get ServerState as “*5”* when the Origin Server is down in
> “TS_EVENT_HTTP_SEND_RESPONSE_HDR” event handler.  Other than this
> information, is there any information I could use for handling Origin
> server down or What API I have to use for checking Origin Server down
> message?
>
>
>
> Thanks
> Gandhimathi
>
>
>
>

Mime
View raw message