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

Function transactionStart

tests/tools/plugins/hook_tunnel_plugin.cc:54–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54static int
55transactionStart(TSCont /* cont ATS_UNUSED */, TSEvent event, void *edata)
56{
57 TSHttpTxn txnp = reinterpret_cast<TSHttpTxn>(edata);
58 TSTxnType retval = TSHttpTxnTypeGet(txnp);
59 Dbg(plugin_ctl, "transactionStart event=%d type=%d", event, retval);
60
61 TSStatIntIncrement(stat_http_req, 1);
62 if (retval != TS_TXN_TYPE_HTTP || event != TS_EVENT_HTTP_READ_REQUEST_HDR) {
63 TSHttpTxnReenable(txnp, TS_EVENT_HTTP_ERROR);
64 return TS_SUCCESS;
65 }
66 TSHttpTxnReenable(txnp, TS_EVENT_HTTP_CONTINUE);
67 return TS_SUCCESS;
68}
69
70static int
71handleMsg(TSCont /* cont ATS_UNUSED */, TSEvent event, void * /* edata ATS_UNUSED */)

Callers

nothing calls this directly

Calls 3

TSHttpTxnTypeGetFunction · 0.85
TSStatIntIncrementFunction · 0.85
TSHttpTxnReenableFunction · 0.85

Tested by

no test coverage detected