| 47 | } |
| 48 | |
| 49 | void |
| 50 | FetchSM::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 | |
| 76 | void |
| 77 | FetchSM::httpConnect() |
nothing calls this directly
no test coverage detected