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

Method new_transaction

src/proxy/http2/Http2ServerSession.cc:320–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320ProxyTransaction *
321Http2ServerSession::new_transaction()
322{
323 this->set_session_active();
324
325 // Create a new stream/transaction
326 Http2Error error(Http2ErrorClass::HTTP2_ERROR_CLASS_NONE);
327 Http2Stream *stream = connection_state.create_initiating_stream(error);
328
329 if (!stream || connection_state.is_peer_concurrent_stream_ub()) {
330 if (error.cls != Http2ErrorClass::HTTP2_ERROR_CLASS_NONE) {
331 Error("HTTP/2 stream error code=0x%02x %s", static_cast<int>(error.code), error.msg);
332 }
333
334 remove_session();
335 }
336
337 return stream;
338}
339
340void
341Http2ServerSession::add_session()

Callers 3

rcv_headers_frameMethod · 0.45

Calls 4

ErrorClass · 0.50
set_session_activeMethod · 0.45

Tested by

no test coverage detected