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

Function stats_cleanup

plugins/stats_over_http/stats_over_http.cc:236–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236static void
237stats_cleanup(TSCont contp, stats_state *my_state)
238{
239 if (my_state->req_buffer) {
240 TSIOBufferDestroy(my_state->req_buffer);
241 my_state->req_buffer = nullptr;
242 }
243
244 if (my_state->resp_buffer) {
245 TSIOBufferDestroy(my_state->resp_buffer);
246 my_state->resp_buffer = nullptr;
247 }
248
249 TSVConnClose(my_state->net_vc);
250 delete my_state;
251 TSContDestroy(contp);
252}
253
254static void
255stats_process_accept(TSCont contp, stats_state *my_state)

Callers 1

stats_process_writeFunction · 0.85

Calls 3

TSIOBufferDestroyFunction · 0.85
TSVConnCloseFunction · 0.85
TSContDestroyFunction · 0.85

Tested by

no test coverage detected