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

Method on_stream_open

src/proxy/http3/Http09App.cc:66–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void
67Http09App::on_stream_open(QUICStream &stream)
68{
69 auto ret = this->_streams.emplace(stream.id(), stream);
70 auto &info = ret.first->second;
71
72 switch (stream.direction()) {
73 case QUICStreamDirection::BIDIRECTIONAL:
74 info.setup_read_vio(this);
75 info.setup_write_vio(this);
76 break;
77 case QUICStreamDirection::SEND:
78 info.setup_write_vio(this);
79 break;
80 case QUICStreamDirection::RECEIVE:
81 info.setup_read_vio(this);
82 break;
83 default:
84 ink_assert(false);
85 break;
86 }
87
88 stream.set_io_adapter(&info.adapter);
89}
90
91void
92Http09App::on_stream_close(QUICStream & /* stream ATS_UNUSED */)

Callers

nothing calls this directly

Calls 6

emplaceMethod · 0.80
setup_read_vioMethod · 0.80
setup_write_vioMethod · 0.80
set_io_adapterMethod · 0.80
idMethod · 0.45
directionMethod · 0.45

Tested by

no test coverage detected