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

Method destroy

src/proxy/http/Http1ServerSession.cc:49–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47Http1ServerSession::Http1ServerSession() : super_type(), trans(this) {}
48
49void
50Http1ServerSession::destroy()
51{
52 if (state != SSN_CLOSED) {
53 return;
54 }
55 ink_release_assert(_vc == nullptr);
56 ink_assert(read_buffer);
57 magic = HTTP_SS_MAGIC_DEAD;
58 if (read_buffer) {
59 free_MIOBuffer(read_buffer);
60 read_buffer = nullptr;
61 }
62
63 mutex.clear();
64 if (httpSessionManager.get_pool_type() == TS_SERVER_SESSION_SHARING_POOL_THREAD) {
65 THREAD_FREE(this, httpServerSessionAllocator, this_thread());
66 } else {
67 httpServerSessionAllocator.free(this);
68 }
69}
70
71void
72Http1ServerSession::free()

Callers 1

do_io_closeMethod · 0.95

Calls 5

free_MIOBufferFunction · 0.85
this_threadFunction · 0.85
get_pool_typeMethod · 0.80
clearMethod · 0.45
freeMethod · 0.45

Tested by

no test coverage detected