| 111 | } |
| 112 | |
| 113 | void |
| 114 | Http1ClientSession::free() |
| 115 | { |
| 116 | magic = HTTP_CS_MAGIC_DEAD; |
| 117 | if (read_buffer) { |
| 118 | free_MIOBuffer(read_buffer); |
| 119 | read_buffer = nullptr; |
| 120 | } |
| 121 | |
| 122 | #ifdef USE_HTTP_DEBUG_LISTS |
| 123 | ink_mutex_acquire(&debug_cs_list_mutex); |
| 124 | debug_cs_list.remove(this); |
| 125 | ink_mutex_release(&debug_cs_list_mutex); |
| 126 | #endif |
| 127 | |
| 128 | if (conn_decrease) { |
| 129 | Metrics::Gauge::decrement(http_rsb.current_client_connections); |
| 130 | conn_decrease = false; |
| 131 | } |
| 132 | |
| 133 | if (_vc) { |
| 134 | _vc->do_io_close(); |
| 135 | _vc = nullptr; |
| 136 | } |
| 137 | |
| 138 | THREAD_FREE(this, http1ClientSessionAllocator, this_thread()); |
| 139 | } |
| 140 | |
| 141 | void |
| 142 | Http1ClientSession::new_connection(NetVConnection *new_vc, MIOBuffer *iobuf, IOBufferReader *reader) |
nothing calls this directly
no test coverage detected