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

Method close_vc

src/proxy/http/HttpTunnel.cc:1771–1785  ·  view source on GitHub ↗

void HttpTunnel::close_vc(HttpTunnelProducer* p) Closes the vc associated with the producer and updates the state of the self_consumer

Source from the content-addressed store, hash-verified

1769// updates the state of the self_consumer
1770//
1771void
1772HttpTunnel::close_vc(HttpTunnelProducer *p)
1773{
1774 ink_assert(p->alive == false);
1775 HttpTunnelConsumer *c = p->self_consumer;
1776
1777 if (c && c->alive) {
1778 c->alive = false;
1779 if (c->write_vio) {
1780 c->bytes_written = c->write_vio->ndone;
1781 }
1782 }
1783
1784 p->vc->do_io_close();
1785}
1786
1787// void HttpTunnel::close_vc(HttpTunnelConsumer* c)
1788//

Callers 2

Calls 2

do_io_closeMethod · 0.45

Tested by

no test coverage detected