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

Method set_throttle_src

src/proxy/http/HttpTunnel.cc:540–553  ·  view source on GitHub ↗

We set the producers in a flow chain specifically rather than using a tunnel level variable in order to handle bi-directional tunnels correctly. In such a case the flow control on producers is not related so a single value for the tunnel won't work. */

Source from the content-addressed store, hash-verified

538 not related so a single value for the tunnel won't work.
539*/
540void
541HttpTunnelProducer::set_throttle_src(HttpTunnelProducer *srcp)
542{
543 HttpTunnelProducer *p = this;
544 p->flow_control_source = srcp;
545 for (HttpTunnelConsumer *c = consumer_list.head; c; c = c->link.next) {
546 if (!c->is_sink()) {
547 p = c->self_producer;
548 if (p) {
549 p->set_throttle_src(srcp);
550 }
551 }
552 }
553}
554
555HttpTunnelConsumer::HttpTunnelConsumer() : link() {}
556

Callers 3

throttleMethod · 0.95
unthrottleMethod · 0.95
chainMethod · 0.80

Calls 1

is_sinkMethod · 0.80

Tested by

no test coverage detected