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

Method usePackedNodeList

plugins/esi/lib/EsiProcessor.cc:126–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126EsiProcessor::UsePackedNodeResult
127EsiProcessor::usePackedNodeList(const char *data, int data_len)
128{
129 if (_curr_state != STOPPED) {
130 TSError("[%s] Cannot use packed node list whilst processing other data", __FUNCTION__);
131 return PROCESS_IN_PROGRESS;
132 }
133 start();
134 if (!_node_list.unpack(data, data_len)) {
135 TSError("[%s] Could not unpack node list from provided data!", __FUNCTION__);
136 error();
137 return UNPACK_FAILURE;
138 }
139 _usePackedNodeList = true;
140 return _handleParseComplete() ? PROCESS_SUCCESS : PROCESS_FAILURE;
141}
142
143bool
144EsiProcessor::_handleParseComplete()

Callers 2

transformDataFunction · 0.45
processor_test.ccFile · 0.45

Calls 3

errorFunction · 0.85
TSErrorFunction · 0.50
unpackMethod · 0.45

Tested by

no test coverage detected