mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Fix Broker topics used to uniquely identify cluster nodes
Node-specific topic prefix subscriptions/publications now add a trailing slash like "zeek/cluster/node/<name>/". Without the trailing slash, messages attempting to target "proxy-10" may also be sent to "proxy-1" since subscription matching is prefix-based.
This commit is contained in:
parent
714e2f736a
commit
ce9183a2ed
8 changed files with 203 additions and 200 deletions
|
@ -298,12 +298,12 @@ function local_node_type(): NodeType
|
|||
|
||||
function node_topic(name: string): string
|
||||
{
|
||||
return node_topic_prefix + name;
|
||||
return node_topic_prefix + name + "/";
|
||||
}
|
||||
|
||||
function nodeid_topic(id: string): string
|
||||
{
|
||||
return node_topic_prefix + id;
|
||||
return nodeid_topic_prefix + id + "/";
|
||||
}
|
||||
|
||||
event Cluster::hello(name: string, id: string) &priority=10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue