"Closing a H2 connection with high stream error rate" is added by 693b3cb.
The close event could be triggered when the first stream got error regardless value of proxy.config.http2.stream_error_rate_threshold. Because the error rate bacomes 1. We should wait for more streams to measure stream error rate correctly.
|
} else if (this->connection_state.get_stream_error_rate() > |
|
Http2::stream_error_rate_threshold) { // For a case many stream errors happened |
|
double |
|
get_stream_error_rate() const |
|
{ |
|
int total = get_stream_requests(); |
|
if (total > 0) { |
|
return (double)stream_error_count / (double)total; |
|
} else { |
|
return 0; |
|
} |
|
} |
"Closing a H2 connection with high stream error rate" is added by 693b3cb.
The close event could be triggered when the first stream got error regardless value of
proxy.config.http2.stream_error_rate_threshold. Because the error rate bacomes1. We should wait for more streams to measure stream error rate correctly.trafficserver/proxy/http2/Http2ClientSession.cc
Lines 383 to 384 in 9b73fc9
trafficserver/proxy/http2/Http2ConnectionState.h
Lines 224 to 233 in 9b73fc9