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

Function handle_session

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

Source from the content-addressed store, hash-verified

46}
47
48static void
49handle_session(TSHttpSsn ssnp, TSCont contp)
50{
51 TSMgmtInt num_ssn = 0;
52
53 TSStatIntIncrement(session_count_stat, 1);
54 num_ssn = TSStatIntGet(session_count_stat);
55 Dbg(dbg_ctl, "The number of sessions is %" PRId64, num_ssn);
56 TSHttpSsnHookAdd(ssnp, TS_HTTP_TXN_START_HOOK, contp);
57}
58
59static int
60ssn_handler(TSCont contp, TSEvent event, void *edata)

Callers 1

ssn_handlerFunction · 0.85

Calls 3

TSStatIntIncrementFunction · 0.85
TSStatIntGetFunction · 0.85
TSHttpSsnHookAddFunction · 0.85

Tested by

no test coverage detected