Skip to content

Conversation

@kasemir
Copy link
Collaborator

@kasemir kasemir commented Jun 16, 2025

Several accumulated PVA updates.

PVA version 3 introduces a new replySrcPort flag.
epics-docs/epics-docs#134
epics-base/pvxs#116

Adds CMD_ORIGIN_TAG handling to java implementation, used to be ignored.
Client emits searches with new replySrcPort flag.
Forwarded UDP search messages have updated client address and get prefixed with CMD_ORIGIN_TAG.
replySrcPort remains set because servers can detect a forwarded message via the CMD_ORIGIN_TAG.

Log more SearchRequest detail.

Default to 224.0.0.128 for local multicast in server, client, MulticastDemo.

Add PV name prefix to BoolDemo.

With TLS, provide access to both the client and the server’s X509 name.

PVA server clears subscription when client destroys a channel without beforehand clearing the subs.

Allow setting index or label of a PVAEnum and serve it with correct “NTEnum” type name.

Fix subscription update race in PVAServer.

Allow use of PVAServer’s ‘reply_sender’ by a gateway to reply ASAP when it connects on the client side without having to wait for a new search on the sender side.

kasemir added 17 commits June 11, 2025 10:58
Client emits searches with new `replySrcPort` flag.
Forwarded search messages have updated client address and `replySrcPort`
option is thus cleared because client address can be used without
further adjustments.

Both server and client default to 224.0.0.128 for local multicast.
Both client and server forward to local multicast but only server needs
to listen to MC.

Log more SearchRequest detail.
When forwarding UDP unicast search requests, prefix them with origin
tag.
When server receives search request, check for optional preceding origin
tag to identify forwarded message.

On forward, 'reply_to_src_port' flag is copied, but server ignores it in
forwarded messages.
.. used to require explicit unsubscribe or closedown of TCP connection
... to indicate that this server now has the PV.
Useful for poxies to indicate ASAP that a PV was just created, not
waiting until the next client search tick
@kasemir kasemir marked this pull request as ready for review July 25, 2025 15:06
@kasemir kasemir changed the title PVA: Version 3, replySrcPort PVA: Version 3, replySrcPort, several fixes Jul 25, 2025
@kasemir kasemir merged commit cae8061 into master Jul 29, 2025
3 checks passed
@kasemir kasemir deleted the pva_search_reply_port branch July 29, 2025 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants