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

Method cleanup_streams

src/proxy/http2/Http2ConnectionState.cc:1989–2014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1987}
1988
1989void
1990Http2ConnectionState::cleanup_streams()
1991{
1992 Http2Stream *s = stream_list.head;
1993 while (s) {
1994 Http2Stream *next = static_cast<Http2Stream *>(s->link.next);
1995 if (this->rx_error_code.cls != ProxyErrorClass::NONE) {
1996 s->set_rx_error_code(this->rx_error_code);
1997 }
1998 if (this->tx_error_code.cls != ProxyErrorClass::NONE) {
1999 s->set_tx_error_code(this->tx_error_code);
2000 }
2001 s->initiating_close();
2002 ink_assert(s != next);
2003 s = next;
2004 }
2005
2006 if (!is_state_closed()) {
2007 SCOPED_MUTEX_LOCK(lock, this->session->get_mutex(), this_ethread());
2008
2009 UnixNetVConnection *vc = static_cast<UnixNetVConnection *>(session->get_netvc());
2010 if (vc && vc->active_timeout_in == 0) {
2011 vc->add_to_keep_alive_queue();
2012 }
2013 }
2014}
2015
2016bool
2017Http2ConnectionState::delete_stream(Http2Stream *stream)

Callers

nothing calls this directly

Calls 6

this_ethreadFunction · 0.85
initiating_closeMethod · 0.80
set_rx_error_codeMethod · 0.45
set_tx_error_codeMethod · 0.45
get_netvcMethod · 0.45

Tested by

no test coverage detected