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

Support client-side cancellation in the router transport #637

Merged
merged 2 commits into from
May 17, 2023

Conversation

timostamm
Copy link
Member

createRouterTransport() added in #548) creates a client for an in-memory server. It had a small flaw: Cancelling calls via an AbortSignal did not work reliably.

This PR updates the implementation to always abort a call right away, just like the Transports that actually make calls across the network via fetch() or one of the Node.js http modules.

@timostamm timostamm merged commit cf73ff6 into main May 17, 2023
3 checks passed
@timostamm timostamm deleted the tstamm/fix-cancellation-for-router-transport branch May 17, 2023 09:01
@timostamm timostamm mentioned this pull request May 17, 2023
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.

None yet

2 participants