Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

fix(provider::ws): ignore the websocket response when the request has been cancelled #641

Merged
merged 1 commit into from
Dec 3, 2021

Conversation

guanqun
Copy link
Contributor

@guanqun guanqun commented Dec 3, 2021

In cases when the request is out, but cancelled locally before it gets back, then later on, the replied request should be ignored, otherwise, it hits an error and aborts the whole websocket connection.

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch!

@guanqun
Copy link
Contributor Author

guanqun commented Dec 3, 2021

force pushed to fix a fmt issue, didn't notice that it was using a nightly fmt.

I guess IPC transportation might have similar issue, but I've never tried or tested it, so I'll just leave it to someone else.

@gakonst gakonst merged commit 8d07610 into gakonst:master Dec 3, 2021
@guanqun guanqun deleted the fix-ws-error branch December 4, 2021 07:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants