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

Method set_tx_error_code

src/proxy/http2/Http2Stream.cc:1286–1295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1284}
1285
1286void
1287Http2Stream::set_tx_error_code(ProxyError e)
1288{
1289 if (!this->is_outbound_connection() && this->_sm) {
1290 if (!(this->_sm->t_state.client_info.tx_error_code.cls == ProxyErrorClass::SSN && e.cls == ProxyErrorClass::TXN)) {
1291 // if there is not an error already set for the session set the transaction level error
1292 this->_sm->t_state.client_info.tx_error_code = e;
1293 }
1294 }
1295}
1296
1297HTTPVersion
1298Http2Stream::get_version(HTTPHdr & /* hdr ATS_UNUSED */) const

Callers 2

cleanup_streamsMethod · 0.45
send_rst_stream_frameMethod · 0.45

Calls 1

Tested by

no test coverage detected