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

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 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

3 participants