MCPcopy Create free account
hub / github.com/apache/trafficserver / txn_handler

Function txn_handler

example/plugins/c-api/session_hooks/session_hooks.cc:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36static int session_count_stat;
37
38static void
39txn_handler(TSHttpTxn /* txnp ATS_UNUSED */, TSCont /* contp ATS_UNUSED */)
40{
41 TSMgmtInt num_txns = 0;
42
43 TSStatIntIncrement(transaction_count_stat, 1);
44 num_txns = TSStatIntGet(transaction_count_stat);
45 Dbg(dbg_ctl, "The number of transactions is %" PRId64, num_txns);
46}
47
48static void
49handle_session(TSHttpSsn ssnp, TSCont contp)

Callers 1

ssn_handlerFunction · 0.70

Calls 2

TSStatIntIncrementFunction · 0.85
TSStatIntGetFunction · 0.85

Tested by

no test coverage detected