Skip to content

[pull] master from Melon-Tropics:master#870

Merged
pull[bot] merged 1 commit intomeonBot:masterfrom
Melon-Tropics:master
May 3, 2020
Merged

[pull] master from Melon-Tropics:master#870
pull[bot] merged 1 commit intomeonBot:masterfrom
Melon-Tropics:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented May 3, 2020

See Commits and Changes for more details.


Created by pull[bot]. Want to support this open source service? Please star it : )

We allow at most one pending receive operation on a web socket, and CloseAsync needs to both send and receive, so if there's a pending receive already, it just reuses / waits for that existing one, which records if it sees a close frame.  However, if the close operation is initiated with a cancellation token that's different from the cancellation token the receive operation was initiated with, the close won't respect the supplied cancellation token because it's just waiting on the existing receive.  The fix is simply to register with this new cancellation token as well when there's an existing receive that we wait on.
@pull pull bot added the ⤵️ pull label May 3, 2020
@pull pull bot merged commit 6d40a8f into meonBot:master May 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant