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

Function inliner_transform

plugins/experimental/inliner/ats-inliner.cc:103–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103int
104inliner_transform(TSCont c, TSEvent e, void *)
105{
106 if (TSVConnClosedGet(c)) {
107 Dbg(dbg_ctl, "connection closed");
108 MyData *const data = static_cast<MyData *>(TSContDataGet(c));
109 if (data != nullptr) {
110 TSContDataSet(c, nullptr);
111 data->handler.abort();
112 delete data;
113 }
114 TSContDestroy(c);
115 } else {
116 switch (e) {
117 case TS_EVENT_ERROR: {
118 const TSVIO vio = TSVConnWriteVIOGet(c);
119 assert(vio != nullptr);
120 TSContCall(TSVIOContGet(vio), TS_EVENT_ERROR, vio);
121 } break;
122
123 case TS_EVENT_IMMEDIATE:
124 handle_transform(c);
125 break;
126
127 default:
128 TSError("[" PLUGIN_TAG "] Unknown event: %i", e);
129 assert(false); // UNREACHABLE
130 }
131 }
132
133 return 0;
134}
135
136bool
137transformable(TSHttpTxn txnp)

Callers

nothing calls this directly

Calls 10

TSVConnClosedGetFunction · 0.85
TSContDataGetFunction · 0.85
TSContDataSetFunction · 0.85
TSContDestroyFunction · 0.85
TSVConnWriteVIOGetFunction · 0.85
TSContCallFunction · 0.85
TSVIOContGetFunction · 0.85
handle_transformFunction · 0.70
TSErrorFunction · 0.50
abortMethod · 0.45

Tested by

no test coverage detected