Skip to content

Conversation

@sczyh30
Copy link
Member

@sczyh30 sczyh30 commented Jan 29, 2023

Signed-off-by: Eric Zhao sczyh16@gmail.com

Describe what this PR does / why we need it

Fix the bug that no error occurred when gRPC connection is unavailable.

Does this pull request fix one issue?

Fixes #20

Describe how you did it

Add a default deadline (timeout) for the gRPC stub. Then error will occur when the deadline exceeds.

Describe how to verify it

Run the demo with a bad remote endpoint.

Special notes for reviews

We may need to make the timeout configurable later.

* Add default deadline (timeout)

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
@sczyh30 sczyh30 added kind/bug Something isn't working area/transport Issues or PRs related to transport layer of OpenSergo client labels Jan 29, 2023
@sczyh30 sczyh30 merged commit ba29db1 into opensergo:main Jan 30, 2023
@sczyh30 sczyh30 deleted the fix-client-no-error-bug branch January 30, 2023 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/transport Issues or PRs related to transport layer of OpenSergo client kind/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No error occurred when remote endpoint is not available | client 连不上控制面时未产生异常

2 participants