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

Function TSRPCHandlerError

src/api/InkAPI.cc:8978–8988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8976}
8977
8978TSReturnCode
8979TSRPCHandlerError(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
8990TSReturnCode
8991TSRecYAMLConfigParse(TSYaml node, TSYAMLRecNodeHandler handler, void *data)

Callers 2

test_join_hosts_methodFunction · 0.85
CB_handle_rpc_io_callFunction · 0.85

Calls 2

ErrataClass · 0.85
make_errno_codeFunction · 0.85

Tested by 2

test_join_hosts_methodFunction · 0.68
CB_handle_rpc_io_callFunction · 0.68