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

Method setOutputComplete

src/tscpp/api/InterceptPlugin.cc:161–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161bool
162InterceptPlugin::setOutputComplete()
163{
164 std::lock_guard<Mutex> scopedLock(*getMutex());
165 if (!state_->net_vc_) {
166 LOG_ERROR("Intercept not operational");
167 return false;
168 }
169 if (!state_->output_.buffer_) {
170 LOG_ERROR("No output produced so far");
171 return false;
172 }
173 TSVIONBytesSet(state_->output_.vio_, state_->num_bytes_written_);
174 TSVIOReenable(state_->output_.vio_);
175 state_->plugin_io_done_ = true;
176 LOG_DEBUG("Response complete");
177 return true;
178}
179
180Headers &
181InterceptPlugin::getRequestHeaders()

Callers 1

handleInputCompleteMethod · 0.45

Calls 2

TSVIONBytesSetFunction · 0.85
TSVIOReenableFunction · 0.85

Tested by

no test coverage detected