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

Method set_stream_id

src/proxy/http2/Http2ConnectionState.cc:1660–1668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1658}
1659
1660void
1661Http2ConnectionState::set_stream_id(Http2Stream *stream)
1662{
1663 if (stream->get_transaction_id() < 0) {
1664 Http2StreamId stream_id = (latest_streamid_in == 0) ? 3 : latest_streamid_in + 2;
1665 stream->set_transaction_id(stream_id);
1666 latest_streamid_in = stream_id;
1667 }
1668}
1669
1670Http2Stream *
1671Http2ConnectionState::create_initiating_stream(Http2Error &error)

Callers 1

send_headers_frameMethod · 0.95

Calls 2

set_transaction_idMethod · 0.80
get_transaction_idMethod · 0.45

Tested by

no test coverage detected