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

Skip deadline when signal is already aborted #472

Merged
merged 1 commit into from
Oct 22, 2023

Conversation

s0meone
Copy link
Contributor

@s0meone s0meone commented Oct 22, 2023

The deadline middleware replaces the original signal with a new one and attaches listeners for the abort event. This works for signals that are not aborted yet but if a signal is already aborted before starting the gRPC call the deadline middleware would still make the request because it did not receive the abort event.

This change skips the deadline middleware completely for calls with an aborted signal. The nice-grpc library will handle the aborted signal and abort the call correctly.

@aikoven
Copy link
Contributor

aikoven commented Oct 22, 2023

Thanks! Will merge and release shortly.

@aikoven aikoven merged commit 2c5cd0b into deeplay-io:master Oct 22, 2023
8 checks passed
@aikoven
Copy link
Contributor

aikoven commented Oct 22, 2023

Published 📦 [email protected]

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