Will only close the connection if do_io_close has been called previously (to set read_state to HCS_CLOSED
| 73 | // |
| 74 | // Will only close the connection if do_io_close has been called previously (to set read_state to HCS_CLOSED |
| 75 | void |
| 76 | Http1ClientSession::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 | |
| 93 | void |
| 94 | Http1ClientSession::release_transaction() |