| 8976 | } |
| 8977 | |
| 8978 | TSReturnCode |
| 8979 | TSRPCHandlerError(int ec, const char *descr, size_t descr_len) |
| 8980 | { |
| 8981 | Dbg(dbg_ctl_rpc_api, ">> Handler seems to be done with an error"); |
| 8982 | std::lock_guard<std::mutex> lock(rpc::g_rpcHandlingMutex); |
| 8983 | ::rpc::g_rpcHandlerResponseData = swoc::Errata(ts::make_errno_code(ec), "{}", swoc::TextView{descr, descr_len}); |
| 8984 | ::rpc::g_rpcHandlerProcessingCompleted = true; |
| 8985 | ::rpc::g_rpcHandlingCompletion.notify_one(); |
| 8986 | Dbg(dbg_ctl_rpc_api, ">> error flagged."); |
| 8987 | return TS_SUCCESS; |
| 8988 | } |
| 8989 | |
| 8990 | TSReturnCode |
| 8991 | TSRecYAMLConfigParse(TSYaml node, TSYAMLRecNodeHandler handler, void *data) |