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

Function cont_global

tests/tools/plugins/user_args.cc:59–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59static int
60cont_global(TSCont /* contp ATS_UNUSED */, TSEvent /* event ATS_UNUSED */, void *edata)
61{
62 TSHttpTxn txnp = static_cast<TSHttpTxn>(edata);
63 TSHttpSsn ssnp = TSHttpTxnSsnGet(txnp);
64 TSVConn vconnp = TSHttpSsnClientVConnGet(ssnp);
65
66 TSUserArgSet(txnp, gIX.TXN, (void *)"Transaction Data");
67 TSUserArgSet(ssnp, gIX.SSN, (void *)"Session Data");
68 TSUserArgSet(vconnp, gIX.VCONN, (void *)"VConn Data");
69
70 TSHttpTxnReenable(txnp, TS_EVENT_HTTP_CONTINUE);
71
72 return 0;
73}
74
75static int
76cont_remap(TSCont contp, TSEvent /* event ATS_UNUSED */, void *edata)

Callers

nothing calls this directly

Calls 4

TSHttpTxnSsnGetFunction · 0.85
TSHttpSsnClientVConnGetFunction · 0.85
TSUserArgSetFunction · 0.85
TSHttpTxnReenableFunction · 0.85

Tested by

no test coverage detected