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 < [email protected]> 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 > > > >
