Skip to content

Rejoin channels when the close event fires after teardown - #6856

Closed
yves-riot wants to merge 1 commit into
phoenixframework:mainfrom
yves-riot:fix-teardown-channel-rejoin
Closed

yves-riot wants to merge 1 commit into
phoenixframework:mainfrom
yves-riot:fix-teardown-channel-rejoin

Conversation

@yves-riot

Copy link
Copy Markdown

teardown() detaches onclose once the connection is closed or after about 1.5s of waiting.
When the close event had not fired by then, onConnClose never ran, the channels stayed joined, and the next connection did not rejoin them, so the server answered every push with "unmatched topic".
Error the channels in teardown, like replaceTransport does since #6854.

teardown() detaches onclose once the connection is closed or after about 1.5s of waiting. When the close event had not fired by then, onConnClose never ran, the channels stayed joined, and the next connection did not rejoin them, so the server answered every push with "unmatched topic". Error the channels in teardown, like replaceTransport does since phoenixframework#6854.
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.

1 participant