Skip to content

Allow a leaving channel to shut down gracefully - #6824

Open
SteffenDE wants to merge 1 commit into
mainfrom
sd-wait-leave
Open

Allow a leaving channel to shut down gracefully#6824
SteffenDE wants to merge 1 commit into
mainfrom
sd-wait-leave

Conversation

@SteffenDE

Copy link
Copy Markdown
Member

Closes phoenixframework/phoenix_live_view#4411.

In LiveView, we reuse the same channel for live navigation. When a client sends an event and then immediately leaves and rejoins, the rejoin could kill the channel while it was still handling the previous message.

Since we know that its state is leaving, we give it up to 5s to finish pending work.

Closes phoenixframework/phoenix_live_view#4411.

In LiveView, we reuse the same channel for live navigation. When a client
sends an event and then immediately leaves and rejoins, the rejoin could
kill the channel while it was still handling the previous message.

Since we know that its state is leaving, we give it up to 5s to finish
pending work.
@dlindenkreuz

Copy link
Copy Markdown

Interesting solution!

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.

Race condition drops chained server commands when using navigate

2 participants