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

Function TSHostStatusSet

src/api/InkAPI.cc:8861–8866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8859}
8860
8861void
8862TSHostStatusSet(const char *hostname, const size_t hostname_len, TSHostStatus status, const unsigned int down_time,
8863 const unsigned int reason)
8864{
8865 HostStatus::instance().setHostStatus(std::string_view(hostname, hostname_len), status, down_time, reason);
8866}
8867
8868// TSHttpTxnResponseActionSet takes a ResponseAction and sets it as the behavior for finding the next parent.
8869// Be aware ATS will never change this outside a plugin. Therefore, plugins which set the ResponseAction

Callers

nothing calls this directly

Calls 1

setHostStatusMethod · 0.45

Tested by

no test coverage detected