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

Method _should_do_something_else

src/proxy/http2/Http2CommonSession.cc:420–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420bool
421Http2CommonSession::_should_do_something_else()
422{
423 if (this->get_proxy_session()->is_peer_closed()) {
424 return false;
425 }
426 if (this->_interrupt_reading_frames) {
427 this->_interrupt_reading_frames = false;
428 return true;
429 }
430 // Do something else every 128 incoming frames if connection state isn't closed
431 return (this->_n_frame_read & 0x7F) == 0 && !connection_state.is_state_closed();
432}
433
434void
435Http2CommonSession::interrupt_reading_frames()

Callers 2

do_process_frame_readMethod · 0.95

Calls 3

is_peer_closedMethod · 0.80
is_state_closedMethod · 0.80
get_proxy_sessionMethod · 0.45

Tested by

no test coverage detected