| 159 | } |
| 160 | |
| 161 | bool |
| 162 | InterceptPlugin::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 | |
| 180 | Headers & |
| 181 | InterceptPlugin::getRequestHeaders() |
no test coverage detected