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

Add RCP timeout #385

Merged
merged 1 commit into from
Jun 10, 2024
Merged

Add RCP timeout #385

merged 1 commit into from
Jun 10, 2024

Conversation

Gsantomaggio
Copy link
Member

configuration. Check the logic status before setting the event.
Fixes: #384

Thanks to @mbaillargeon-ubi for the debug.

The PR adds also the RpcTimeOut configuration:

      var config = new StreamSystemConfig() { RpcTimeOut = TimeSpan.Seconds(5) };
    

configuration. Check the logic status before raise set the event
Fixes: #384

Signed-off-by: Gabriele Santomaggio <g.santomaggio@gmail.com>
@Gsantomaggio
Copy link
Member Author

Maybe @stebet can add some comments :) !

@Gsantomaggio Gsantomaggio merged commit 14b6e2d into main Jun 10, 2024
2 checks passed
@Gsantomaggio Gsantomaggio deleted the rpc_timeout branch June 10, 2024 11:54
@Gsantomaggio Gsantomaggio added this to the 1.8.7 milestone Jun 10, 2024
lukebakken added a commit that referenced this pull request Jun 10, 2024
There is still a slim chance that the code in #385 will throw
`InvalidOperationException`, since the check and call to `SetException`
is not atomic.

`ManualResetValueTaskSource` does not have `TrySetException` like
`TaskCompletionSource`.
@lukebakken lukebakken mentioned this pull request Jun 10, 2024
lukebakken added a commit that referenced this pull request Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant