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

Method on_stream_open

src/proxy/http3/Http3App.cc:106–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void
107Http3App::on_stream_open(QUICStream &stream)
108{
109 auto ret = this->_streams.emplace(stream.id(), stream);
110 auto &info = ret.first->second;
111
112 switch (stream.direction()) {
113 case QUICStreamDirection::BIDIRECTIONAL:
114 info.setup_read_vio(this);
115 info.setup_write_vio(this);
116 break;
117 case QUICStreamDirection::SEND:
118 info.setup_write_vio(this);
119 break;
120 case QUICStreamDirection::RECEIVE:
121 info.setup_read_vio(this);
122 break;
123 default:
124 ink_assert(false);
125 break;
126 }
127
128 stream.set_io_adapter(&info.adapter);
129}
130
131void
132Http3App::on_stream_close(QUICStream &stream)

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