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

Method is_tunnel_alive

include/proxy/http/HttpTunnel.h:550–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548}
549
550inline bool
551HttpTunnel::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
573inline HttpTunnelProducer *
574HttpTunnel::get_producer(VConnection *vc)

Calls

no outgoing calls

Tested by

no test coverage detected