]> git.ipfire.org Git - thirdparty/openwrt.git/commit
unetmsg: fix publish notification timing around remote auth
authorFelix Fietkau <nbd@nbd.name>
Fri, 6 Feb 2026 09:22:30 +0000 (09:22 +0000)
committerFelix Fietkau <nbd@nbd.name>
Mon, 16 Feb 2026 08:09:09 +0000 (08:09 +0000)
commitef79f65981306409812d4dcd294b6a2bca31d5af
tree1159c08fb3c97a0fccf9bdb014c8b7839355833e
parent535403297e4d4574008c85b483ff17c252819c90
unetmsg: fix publish notification timing around remote auth

When a remote peer's publish registrations arrive via RX before the
local TX connection is authenticated, handle_publish fires but the
subscriber can't reach the remote publisher yet since the TX channel
isn't ready.

Suppress publish notifications on the RX side when no authenticated TX
channel exists for the remote host. After TX authentication completes,
re-trigger handle_publish only for topics that the specific peer
publishes and that have local subscribers.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 3efcf444a11e9402d86ae79c733114827ce31b42)
package/network/services/unetmsg/files/usr/share/ucode/unetmsg/unetmsgd-remote.uc