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

Method destroy

include/proxy/http/HttpTransact.h:896–933  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

894 ~State() { destroy(); }
895
896 void
897 destroy()
898 {
899 m_magic = HTTP_TRANSACT_MAGIC_DEAD;
900
901 free_internal_msg_buffer();
902 ats_free(internal_msg_buffer_type);
903
904 if (parent_params != nullptr) {
905 ParentConfig::release(parent_params);
906 parent_params = nullptr;
907 }
908
909 hdr_info.client_request.destroy();
910 hdr_info.client_response.destroy();
911 hdr_info.server_request.destroy();
912 hdr_info.server_response.destroy();
913 hdr_info.transform_response.destroy();
914 hdr_info.cache_request.destroy();
915 hdr_info.cache_response.destroy();
916 cache_info.lookup_url_storage.destroy();
917 cache_info.parent_selection_url_storage.destroy();
918 cache_info.original_url.destroy();
919 cache_info.object_store.destroy();
920 cache_info.transform_store.destroy();
921 redirect_info.original_url.destroy();
922
923 url_map.clear();
924 arena.reset();
925 unmapped_url.clear();
926 outbound_conn_track_state.clear();
927
928 delete[] ranges;
929 ranges = nullptr;
930 range_setup = RANGE_NONE;
931
932 return;
933 }
934
935 int64_t state_machine_id() const;
936

Callers 2

reset_receive_headersMethod · 0.45
reset_send_headersMethod · 0.45

Calls 4

ats_freeFunction · 0.85
releaseFunction · 0.85
clearMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected