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

Method destroy

src/proxy/http/Http1ClientSession.cc:75–91  ·  view source on GitHub ↗

Will only close the connection if do_io_close has been called previously (to set read_state to HCS_CLOSED

Source from the content-addressed store, hash-verified

73//
74// Will only close the connection if do_io_close has been called previously (to set read_state to HCS_CLOSED
75void
76Http1ClientSession::destroy()
77{
78 if (read_state != HCS_CLOSED) {
79 return;
80 }
81 if (!in_destroy) {
82 in_destroy = true;
83
84 HttpSsnDbg("[%" PRId64 "] session destroy", con_id);
85 ink_assert(read_buffer);
86 ink_release_assert(transact_count == released_transactions);
87 do_api_callout(TS_HTTP_SSN_CLOSE_HOOK);
88 } else {
89 Warning("http1: Attempt to double ssn close");
90 }
91}
92
93void
94Http1ClientSession::release_transaction()

Callers 1

do_io_closeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected