Skip to content

Conversation

@duartenfonseca
Copy link
Collaborator

No description provided.

brunoldsilva and others added 3 commits July 25, 2025 14:23
Summary
Always send initial event on subscription.
Details
This removes a check from the subscription logic for internal
communication which prevented notifications from being sent if a client
re-subscribed to an active subscription.
The issue was that in the case where the subscription was not properly
canceled, such as during a suspend cycle, the new subscription would not
trigger the initial events that the client was expecting.
Since the client is the one interested in maintaining the subscription,
we should consider it the authority regarding the subscription status
and treat its requests accordingly.
Summary
Applications that use vsomeip as inter thread mechanism receive multiple times
ADD_CLIENT command from routingmanager since they are the provider of the service they consume.
Moreover, this PR also introduces a minor refactor concerning the registration order.
Details
Applications that use vsomeip as inter thread communication mechanism will receive the
ON_ROUTING_INFO ADD_CLIENT message from the registration process and an additional
message for each time it consumes a service that itself provides:
AAAA BBBB VSIP 336 log info verbose 1 Application/Client 6102 (..Service) is registered.
AAAA BBBB VSIP 336 log info verbose 1 Application/Client 6102 (..Service) is registered.
AAAA BBBB VSIP 336 log info verbose 1 Application/Client 6102 (..Service) is registered.
AAAA BBBB VSIP 336 log info verbose 1 Client [6102] @ xxx.xx.xxx.xxx:10501 is connecting to [6102]
@ xxx.xx.xxx.xxx:10500 endpoint > 0xaaaaebc14820
Alternative:

Ensure routing manager doesn't send ROUTING_INFO ADD_CLIENT command when provider and
consumer ids match.

The registration order is updated so that the registered state change only occurs when the
registered_ack and pending offers are successfully sent to the routing manager.
Details
In short:
a) decrease frequency (logging every 10s is fine!)
b) use server logging
c) decrease threshold (64KB is already massive!)
It would be invaluable in cases where UDP queues
are definitely filling up
@duartenfonseca duartenfonseca merged commit fcef076 into master Jul 25, 2025
2 checks passed
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