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

Method schedule

plugins/prefetch/fetch.cc:417–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417bool
418BgFetch::schedule(BgFetchState *state, const PrefetchConfig &config, bool askPermission, TSMBuffer requestBuffer,
419 TSMLoc requestHeaderLoc, TSHttpTxn txnp, const char *path, size_t pathLen, const String &cachekey,
420 bool removeQuery)
421{
422 bool ret = false;
423 BgFetch *fetch = new BgFetch(state, config, askPermission);
424 if (fetch->init(requestBuffer, requestHeaderLoc, txnp, path, pathLen, cachekey, removeQuery)) {
425 fetch->schedule();
426 ret = true;
427 } else {
428 delete fetch;
429 }
430 return ret;
431}
432
433bool
434BgFetch::saveIp(TSHttpTxn txnp)

Callers

nothing calls this directly

Calls 9

TSContCreateFunction · 0.85
TSMutexCreateFunction · 0.85
TSContDataSetFunction · 0.85
TSIOBufferCreateFunction · 0.85
TSIOBufferReaderAllocFunction · 0.85
TShrtimeFunction · 0.85
TSContScheduleOnPoolFunction · 0.85
initMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected