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

Method close_target_vio

src/iocore/utils/OneWayMultiTunnel.cc:229–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void
230OneWayMultiTunnel::close_target_vio(int /* result ATS_UNUSED */, VIO *vio)
231{
232 for (int i = 0; i < n_vioTargets; i++) {
233 VIO *v = vioTargets[i];
234 if (v && (!vio || v == vio)) {
235 if (last_connection() || !single_buffer) {
236 free_MIOBuffer(v->buffer.writer());
237 }
238 if (close_target) {
239 v->vc_server->do_io_close();
240 }
241 vioTargets[i] = nullptr;
242 n_connections--;
243 }
244 }
245}
246
247void
248OneWayMultiTunnel::reenable_all()

Callers

nothing calls this directly

Calls 3

free_MIOBufferFunction · 0.85
writerMethod · 0.45
do_io_closeMethod · 0.45

Tested by

no test coverage detected