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

Method do_io_close

src/proxy/http2/Http2ClientSession.cc:146–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144// are scenarios where we would like to complete the outstanding streams.
145
146void
147Http2ClientSession::do_io_close(int /* alerrno ATS_UNUSED */)
148{
149 REMEMBER(NO_EVENT, this->recursion)
150
151 if (!this->connection_state.is_state_closed()) {
152 Http2SsnDebug("session closed");
153
154 ink_assert(this->mutex->thread_holding == this_ethread());
155 send_connection_event(&this->connection_state, HTTP2_SESSION_EVENT_FINI, this);
156
157 this->connection_state.release_stream();
158
159 this->clear_session_active();
160
161 // Clean up the write VIO in case of inactivity timeout
162 this->do_io_write(this, 0, nullptr);
163 }
164}
165
166int
167Http2ClientSession::main_event_handler(int event, void *edata)

Callers 2

main_event_handlerMethod · 0.95
destroyMethod · 0.45

Calls 6

this_ethreadFunction · 0.85
is_state_closedMethod · 0.80
release_streamMethod · 0.80
send_connection_eventFunction · 0.70
clear_session_activeMethod · 0.45
do_io_writeMethod · 0.45

Tested by

no test coverage detected