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

Method get_stream_error_rate

include/proxy/http2/Http2ConnectionState.h:482–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482inline double
483Http2ConnectionState::get_stream_error_rate() const
484{
485 int total = get_stream_requests();
486
487 if (static_cast<uint32_t>(total) < Http2::stream_error_sampling_threshold) {
488 return 0;
489 }
490
491 if (total >= (1 / Http2::stream_error_rate_threshold)) {
492 return (double)stream_error_count / (double)total;
493 } else {
494 return 0;
495 }
496}
497
498inline Http2ErrorCode
499Http2ConnectionState::get_shutdown_reason() const

Callers 2

main_event_handlerMethod · 0.80
do_process_frame_readMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected