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

Return Result when creating DaprHttpServer #253

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

LeonMatthesKDAB
Copy link

Description

Especially when running custom docker setups, the container that
contains the sidecar may not be running exactly when the Rust code
starts running.

To fix this, before we needed to sleep(2s) to avoid a panic in the Rust
program.
With this patch, this can be handled on the user side (e.g. the
connection can be retried multiple times with timeouts in-between).

Issue reference

None

Checklist

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@LeonMatthesKDAB LeonMatthesKDAB requested review from a team as code owners December 10, 2024 07:41
@LeonMatthesKDAB LeonMatthesKDAB force-pushed the http-server-error-handling branch from c5c3ba1 to 6d4339e Compare December 10, 2024 09:17
Especially when running custom docker setups, the container that
contains the sidecar may not be running exactly when the Rust code
starts running.

To fix this, before we needed to sleep(2s) to avoid a panic in the Rust
program.
With this patch, this can be handled on the user side (e.g. the
connection can be retried multiple times with timeouts in-between).

Signed-off-by: Leon Matthes <[email protected]>
@LeonMatthesKDAB LeonMatthesKDAB force-pushed the http-server-error-handling branch from 6d4339e to e86e915 Compare December 10, 2024 09:18
@mikeee mikeee changed the base branch from main to release-0.16 December 10, 2024 19:25
@mikeee mikeee added this to the 0.16.0 milestone Dec 10, 2024
@mikeee
Copy link
Member

mikeee commented Dec 10, 2024

Thank you for this refactor - really appreciate it!

@mikeee mikeee merged commit 6973b7d into dapr:release-0.16 Dec 10, 2024
25 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