Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix client invocation bug with multiple endpoints #2154

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

xingsy97
Copy link
Contributor

@xingsy97 xingsy97 commented Feb 18, 2025

Summary of the changes (Less than 80 chars)

@xingsy97 xingsy97 marked this pull request as draft February 18, 2025 08:40
@xingsy97 xingsy97 marked this pull request as ready for review February 19, 2025 06:48
@xingsy97 xingsy97 force-pushed the siy/fix-invocation-bug branch from 427b44c to 0f8a61e Compare February 19, 2025 07:24
@xingsy97 xingsy97 force-pushed the siy/fix-invocation-bug branch from 6f3059e to 9431689 Compare February 19, 2025 07:39
if (serviceMessage is ClientInvocationMessage invocationMessage)
{
// Accroding to target endpoints in method `WriteMultiEndpointMessageAsync`
_clientInvocationManager.Caller.SetAckNumber(invocationMessage.InvocationId, TargetEndpoints.Length);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when TargetEndpoints.Length is 0, the result is OK?

Copy link
Contributor Author

@xingsy97 xingsy97 Feb 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class AckHandler could handle such condition correctly. Refer to its method SetExpectedCount

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xingsy97 xingsy97 force-pushed the siy/fix-invocation-bug branch from 075f8ed to 68b7aa7 Compare February 24, 2025 04:58
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.

3 participants