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

Method do_io_close

src/proxy/http2/Http2ServerSession.cc:150–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148// are scenarios where we would like to complete the outstanding streams.
149
150void
151Http2ServerSession::do_io_close(int /* alerrno ATS_UNUSED */)
152{
153 REMEMBER(NO_EVENT, this->recursion)
154
155 if (!this->connection_state.is_state_closed()) {
156 Http2SsnDebug("session closed");
157 this->remove_session();
158
159 ink_assert(this->mutex->thread_holding == this_ethread());
160 send_connection_event(&this->connection_state, HTTP2_SESSION_EVENT_FINI, this);
161
162 // Destroy will be called from connection_state.release_stream() once the number of active streams goes to 0
163 }
164}
165
166int
167Http2ServerSession::main_event_handler(int event, void *edata)

Callers 2

main_event_handlerMethod · 0.95
destroyMethod · 0.45

Calls 4

remove_sessionMethod · 0.95
this_ethreadFunction · 0.85
is_state_closedMethod · 0.80
send_connection_eventFunction · 0.70

Tested by

no test coverage detected