Skip to content

Handle new socket connections to existing entertainment stream#15

Draft
duvholt wants to merge 2 commits into
masterfrom
fix/entertainment-socket
Draft

Handle new socket connections to existing entertainment stream#15
duvholt wants to merge 2 commits into
masterfrom
fix/entertainment-socket

Conversation

@duvholt
Copy link
Copy Markdown
Owner

@duvholt duvholt commented May 14, 2026

Clients like iLightShow sometimes end up creating multiple connections when starting the entertainment stream. Previously we stopped the entertainment stream when the socket closed, but since a new socket may already have been opening this ended up creating a loop of start and stop after the streams timed out.

This PR is not completely ready since it's missing support for stopping the entertainment stream when all sockets are closed.

duvholt added 2 commits May 9, 2026 21:42
Clients like iLightShow create new socket connections before actually starting the entertainment stream. This caused some reconnect loops where connections timed out while new connections were created. Instead we create a listener per socket connection since it's straightforward to handle multiple connections at the same time. This might also fix some disconnection problems for longer entertainment streams where a client might reconnect in the middle of a stream.
This seems to fix already streaming clients reconnecting after Bifrost has been restarted
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