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

Function dispatch

plugins/multiplexer/dispatch.cc:258–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258void
259dispatch(Requests &r, const int t)
260{
261 Requests::iterator iterator = r.begin();
262 const Requests::iterator end = r.end();
263 for (; iterator != end; ++iterator) {
264 assert(iterator->io.get() != nullptr);
265 if (dbg_ctl.on()) {
266 Dbg(dbg_ctl, "Dispatching %i bytes to \"%s\"", iterator->length, iterator->host.c_str());
267 std::string b;
268 read(iterator->io->reader, b);
269 assert(b.size() == static_cast<uint64_t>(iterator->length));
270 Dbg(dbg_ctl, "%s", b.c_str());
271 }
272 // forwarding iterator->io pointer ownership
273 ats::get(iterator->io.release(), iterator->length, Handler(iterator->host), t);
274 }
275}

Callers 3

handlePostFunction · 0.85
DoRemapFunction · 0.85
AuthProxyGlobalHookFunction · 0.85

Calls 10

readFunction · 0.70
getFunction · 0.70
HandlerClass · 0.70
beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45
onMethod · 0.45
c_strMethod · 0.45
sizeMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected