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

Method send_body

src/proxy/http2/Http2Stream.cc:975–996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

973}
974
975void
976Http2Stream::send_body(bool /* call_update ATS_UNUSED */)
977{
978 Http2ConnectionState &connection_state = this->get_connection_state();
979 _timeout.update_inactivity();
980
981 reentrancy_count++;
982
983 SCOPED_MUTEX_LOCK(lock, _proxy_ssn->mutex, this_ethread());
984 if (Http2::stream_priority_enabled) {
985 connection_state.schedule_stream_to_send_priority_frames(this);
986 // signal_write_event() will be called from `Http2ConnectionState::send_data_frames_depends_on_priority()`
987 // when write_vio is consumed
988 } else {
989 connection_state.send_data_frames(this);
990 // XXX The call to signal_write_event can destroy/free the Http2Stream.
991 // Don't modify the Http2Stream after calling this method.
992 }
993
994 reentrancy_count--;
995 terminate_if_possible();
996}
997
998void
999Http2Stream::reenable_write()

Callers 2

restart_sendingMethod · 0.95
update_write_requestMethod · 0.95

Calls 4

this_ethreadFunction · 0.85
update_inactivityMethod · 0.80
send_data_framesMethod · 0.80

Tested by

no test coverage detected