void Http1ServerSession::release() Releases the session for K-A reuse
| 146 | // Releases the session for K-A reuse |
| 147 | // |
| 148 | void |
| 149 | Http1ServerSession::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 |
| 166 | IpEndpoint const & |
nothing calls this directly
no test coverage detected