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

Method release

src/proxy/http/Http1ServerSession.cc:148–163  ·  view source on GitHub ↗

void Http1ServerSession::release() Releases the session for K-A reuse

Source from the content-addressed store, hash-verified

146// Releases the session for K-A reuse
147//
148void
149Http1ServerSession::release(ProxyTransaction * /* trans ATS_UNUSED */)
150{
151 Dbg(dbg_ctl_http_ss, "[%" PRId64 "] Releasing session, private_session=%d, sharing_match=%d", con_id, this->is_private(),
152 sharing_match);
153 if (state == SSN_IN_USE) {
154 // The caller should have already set the inactive timeout to the keep alive timeout
155 // Unfortunately, we do not have access to that value from here.
156 // However we can clear the active timeout here. The active timeout makes no sense
157 // in the keep alive state
158 cancel_active_timeout();
159 state = SSN_TO_RELEASE;
160 return;
161 }
162 ink_release_assert(state == SSN_TO_RELEASE);
163}
164
165// Keys for matching hostnames
166IpEndpoint const &

Callers

nothing calls this directly

Calls 1

is_privateMethod · 0.45

Tested by

no test coverage detected