TSHttpTxnMilestoneGet

Synopsis

#include <ts/ts.h>

TSReturnCode TSHttpTxnMilestoneGet(TSHttpTxn txnp, TSMilestonesType milestone, TSHRTime * time)

Description

TSHttpTxnMilestoneGet() will fetch a specific milestone timer value for the current request. These timers are calculated during the lifetime of a transaction, and are all in TSHRTime units (nanoseconds), measured from the beginning of the transaction. The time argument is a pointer to a valid TSHRtime storage, and is set upon success.

The supported TSMilestonesType milestone types are:



TS_MILESTONE_UA_BEGIN
TS_MILESTONE_UA_READ_HEADER_DONE
TS_MILESTONE_UA_BEGIN_WRITE
TS_MILESTONE_UA_CLOSE
TS_MILESTONE_SERVER_FIRST_CONNECT
TS_MILESTONE_SERVER_CONNECT
TS_MILESTONE_SERVER_CONNECT_END
TS_MILESTONE_SERVER_BEGIN_WRITE
TS_MILESTONE_SERVER_FIRST_READ
TS_MILESTONE_SERVER_READ_HEADER_DONE
TS_MILESTONE_SERVER_CLOSE
TS_MILESTONE_CACHE_OPEN_READ_BEGIN
TS_MILESTONE_CACHE_OPEN_READ_END
TS_MILESTONE_CACHE_OPEN_WRITE_BEGIN
TS_MILESTONE_CACHE_OPEN_WRITE_END
TS_MILESTONE_DNS_LOOKUP_BEGIN
TS_MILESTONE_DNS_LOOKUP_END
TS_MILESTONE_SM_START
TS_MILESTONE_SM_FINISH
TS_MILESTONE_LAST_ENTRY

Return values

TS_SUCCESS or TS_ERROR.

See also

TSAPI(3ts)

Project Versions

Table Of Contents

Previous topic

TSHttpParserCreate

Next topic

TSIOBufferCreate

This Page