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

Method cleanUp

src/proxy/FetchSM.cc:49–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void
50FetchSM::cleanUp()
51{
52 Dbg(dbg_ctl, "[%s] calling cleanup", __FUNCTION__);
53
54 if (!ink_atomic_cas(&destroyed, false, true)) {
55 Dbg(dbg_ctl, "Error: Double delete on FetchSM, this:%p", this);
56 return;
57 }
58
59 if (resp_is_chunked > 0 && (fetch_flags & TS_FETCH_FLAGS_DECHUNK)) {
60 chunked_handler.clear();
61 }
62
63 if (http_vc) {
64 http_vc->do_io_close();
65 }
66 free_MIOBuffer(req_buffer);
67 free_MIOBuffer(resp_buffer);
68 mutex.clear();
69 http_parser_clear(&http_parser);
70 client_response_hdr.destroy();
71 ats_free(client_response);
72 cont_mutex.clear();
73 FetchSMAllocator.free(this);
74}
75
76void
77FetchSM::httpConnect()

Callers

nothing calls this directly

Calls 8

ink_atomic_casFunction · 0.85
free_MIOBufferFunction · 0.85
http_parser_clearFunction · 0.85
ats_freeFunction · 0.85
clearMethod · 0.45
do_io_closeMethod · 0.45
destroyMethod · 0.45
freeMethod · 0.45

Tested by

no test coverage detected