Skip to content

Fix/client handler leak#122

Open
dmorn wants to merge 18 commits intomembraneframework:masterfrom
kim-company:fix/client-handler-leak
Open

Fix/client handler leak#122
dmorn wants to merge 18 commits intomembraneframework:masterfrom
kim-company:fix/client-handler-leak

Conversation

@dmorn
Copy link
Copy Markdown
Contributor

@dmorn dmorn commented Mar 19, 2026

If a client does TCP health-checks on a listener based on this library, we leak ClientHandler processes at each call. This addresses that by closing the hander. In is built on top of #118

@dmorn dmorn requested a review from varsill as a code owner March 19, 2026 16:05
@varsill
Copy link
Copy Markdown
Contributor

varsill commented Mar 20, 2026

As far as I can see the actual change in this PR is stopping the client handler GenServer's, let's rebase the PR after #118 is merged and it will be fine to merge this one too 👍

The client_timeout handler always called {:stop, :normal, state}
regardless of whether the client had successfully published. This
caused all RTMP connections to be terminated after 5 seconds, even
when data was actively flowing.

Move the stop into the not-published branch so active connections
are left alone when the timeout fires.
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.

3 participants