| 548 | } |
| 549 | |
| 550 | inline bool |
| 551 | HttpTunnel::is_tunnel_alive() const |
| 552 | { |
| 553 | bool tunnel_alive = false; |
| 554 | |
| 555 | for (const auto &producer : producers) { |
| 556 | if (producer.alive == true) { |
| 557 | tunnel_alive = true; |
| 558 | break; |
| 559 | } |
| 560 | } |
| 561 | if (!tunnel_alive) { |
| 562 | for (const auto &consumer : consumers) { |
| 563 | if (consumer.alive == true) { |
| 564 | tunnel_alive = true; |
| 565 | break; |
| 566 | } |
| 567 | } |
| 568 | } |
| 569 | |
| 570 | return tunnel_alive; |
| 571 | } |
| 572 | |
| 573 | inline HttpTunnelProducer * |
| 574 | HttpTunnel::get_producer(VConnection *vc) |
no outgoing calls
no test coverage detected