mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Management framework: minor timeout bugfix
The timeout result wasn't actually stored in requests timing out in the agent. (So far that's for deployment requests.) Also log the timing out of any request state, similar to the controller.
This commit is contained in:
parent
b2f9e29bae
commit
1af9bba76e
1 changed files with 4 additions and 0 deletions
|
@ -821,11 +821,15 @@ event Management::Node::API::notify_node_hello(node: string)
|
|||
|
||||
event Management::Request::request_expired(req: Management::Request::Request)
|
||||
{
|
||||
Management::Log::info(fmt("request %s timed out", req$id));
|
||||
|
||||
local res = Management::Result($reqid=req$id,
|
||||
$instance = Management::Agent::get_name(),
|
||||
$success = F,
|
||||
$error = "request timed out");
|
||||
|
||||
req$results += res;
|
||||
|
||||
if ( req?$deploy_state_agent )
|
||||
{
|
||||
send_deploy_response(req);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue