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

Method free

src/proxy/http/Http1ClientSession.cc:113–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void
114Http1ClientSession::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
141void
142Http1ClientSession::new_connection(NetVConnection *new_vc, MIOBuffer *iobuf, IOBufferReader *reader)

Callers

nothing calls this directly

Calls 6

free_MIOBufferFunction · 0.85
ink_mutex_acquireFunction · 0.85
ink_mutex_releaseFunction · 0.85
this_threadFunction · 0.85
removeMethod · 0.45
do_io_closeMethod · 0.45

Tested by

no test coverage detected