MCPcopy Create free account
hub / github.com/apache/trafficserver / ~HttpSM

Method ~HttpSM

src/proxy/http/HttpSM.cc:253–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251HttpSM::HttpSM() : Continuation(nullptr), vc_table(this) {}
252
253HttpSM::~HttpSM()
254{
255 http_parser_clear(&http_parser);
256
257 HttpConfig::release(t_state.http_config_param);
258 m_remap->release();
259
260 cache_sm.cancel_pending_action();
261
262 mutex.clear();
263 tunnel.mutex.clear();
264 cache_sm.mutex.clear();
265 transform_cache_sm.mutex.clear();
266 magic = HTTP_SM_MAGIC_DEAD;
267 debug_on = false;
268
269 if (_prewarm_sm) {
270 _prewarm_sm->destroy();
271 THREAD_FREE(_prewarm_sm, preWarmSMAllocator, this_ethread());
272 _prewarm_sm = nullptr;
273 }
274}
275
276void
277HttpSM::destroy()

Callers

nothing calls this directly

Calls 7

http_parser_clearFunction · 0.85
releaseFunction · 0.85
this_ethreadFunction · 0.85
cancel_pending_actionMethod · 0.80
releaseMethod · 0.45
clearMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected