void HttpTunnel::close_vc(HttpTunnelProducer* p) Closes the vc associated with the producer and updates the state of the self_consumer
| 1769 | // updates the state of the self_consumer |
| 1770 | // |
| 1771 | void |
| 1772 | HttpTunnel::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 | // |
no test coverage detected