Skip to content

Update to livekit-ffi 0.17.0, fix unpublish track on room disconnected state hangs indefinitely - #305

Merged
alan-george-lk merged 2 commits into
mainfrom
alan/bugfix-unpublish-hang
Dec 3, 2026
Merged

alan-george-lk merged 2 commits into
mainfrom
alan/bugfix-unpublish-hang

Conversation

@alan-george-lk

@alan-george-lk alan-george-lk commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Update to livekit-ffi 0.17.0.

Fixes user-reported bug: unpublishTrack() blocking indefinitely while the room is offline.

  • Updates the Rust SDK submodule to include the FFI fix from livekit/rust-sdks#1629.
  • Adds a TCP fault proxy for network interruption tests.
  • Adds an integration test that pauses signaling during reconnect and verifies the unpublishTrack() callback completes within a bounded time.

Testing

  • Added: ConnectionLifecycleIntegrationTest.DisconnectedUnpublishTrackDoesNotBlock

Depends on livekit/rust-sdks#1629.

@alan-george-lk
alan-george-lk force-pushed the alan/bugfix-unpublish-hang branch from 02f6b2a to 9299500 Compare December 2, 2026 23:48
namespace livekit::test {

/// Test-only TCP proxy whose established connections can be frozen or reset.
class TcpFaultProxy {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer note: this is verbatim what we've shipped in ros-portal. Might be worth a special flag exposing test-assets in the SDK so we can use the same implementation.

@alan-george-lk
alan-george-lk marked this pull request as ready for review December 2, 2026 23:53
@alan-george-lk
alan-george-lk requested review from a team and xianshijing-lk as code owners December 2, 2026 23:53

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Devin Review: 3 flags

Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

@stephen-derosa stephen-derosa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love me some rust side fixes

@alan-george-lk alan-george-lk changed the title Unpublish track on room disconnected state hangs indefinitely Update to livekit-ffi 0.17.0, fix unpublish track on room disconnected state hangs indefinitely Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

⚠️ Memory checks need attention.

CI run · Commit 77c3d35

Memory tester results

Iterations: 100
Warmup: 20
Blocking limits: RSS growth ≤ 24 MiB; thread growth ≤ 10.
Advisory limits: RSS growth ≤ 8 MiB; thread growth ≤ 0.

Scenario RSS 0→20 RSS 20→100 Threads 0→20 Threads 20→100 Status
audio-track +16.77 MiB +0.19 MiB +7 0 ✅ PASS
video-track +17.52 MiB +0.18 MiB +7 0 ✅ PASS
data-track +13.19 MiB +0.09 MiB +1 0 ✅ PASS
room-reuse +13.03 MiB +0.05 MiB +1 0 ✅ PASS
room-client-leave +13.02 MiB +0.09 MiB +1 0 ✅ PASS
room-server-delete +15.85 MiB -0.22 MiB +1 0 ✅ PASS
capture-clock +118.67 MiB +1.13 MiB +7 0 ✅ PASS
capture-pattern +111.98 MiB +3.20 MiB +7 +1 ⚠️ ADVISORY
capture-gstreamer +35.31 MiB +0.95 MiB +9 0 ✅ PASS

@alan-george-lk
alan-george-lk merged commit e6de848 into main Dec 3, 2026
27 checks passed
@alan-george-lk
alan-george-lk deleted the alan/bugfix-unpublish-hang branch December 3, 2026 01:20
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.

2 participants