[ https://issues.apache.org/jira/browse/TS-3341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom updated TS-3341: ------------------------------ Component/s: (was: Core) TS API > Add plugin APIs about server transaction status > ----------------------------------------------- > > Key: TS-3341 > URL: https://issues.apache.org/jira/browse/TS-3341 > Project: Traffic Server > Issue Type: Improvement > Components: TS API > Reporter: William Bardwell > Assignee: William Bardwell > Fix For: 5.3.0 > > > {code} > int > TSHttpTxnServerTransactionClientAbortGet(TSHttpTxn txnp) > { > sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS); > HttpTransact::State *s = &(((HttpSM *) txnp)->t_state); > return (s->client_info.abort == HttpTransact::ABORTED); > } > {code} > {code} > int > TSHttpTxnServerTransactionCompleteGet(TSHttpTxn txnp) > { > sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS); > HttpTransact::State *s = &(((HttpSM *) txnp)->t_state); > return ((TSServerState)s->current.state != TS_SRVSTATE_CONNECTION_ALIVE) || > (s->current.server ? (s->current.server->state == > HttpTransact::TRANSACTION_COMPLETE):false); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)