-
Notifications
You must be signed in to change notification settings - Fork 33
Bugfix: Server-initiated room disconnect shutdown fix #205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
alan-george-lk
wants to merge
20
commits into
main
Choose a base branch
from
alan/bugfix-room-shutdown
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
8f5433c
Initial impl of shutdown repro
alan-george-lk d5dda8c
Use room name for repro
alan-george-lk 0b9ea06
Implementation of teardown feature for bugfix
alan-george-lk 9effbcb
Add integration test
alan-george-lk 738693b
Remove standalone disconnect repro from branch
alan-george-lk 0672226
Cleanup
alan-george-lk 7810fa3
Unify emitFfiEvent into standalone header
alan-george-lk 9f56644
Merge branch 'main' of github.com:livekit/client-sdk-cpp into alan/bu…
alan-george-lk 83c403b
Address review: rename Room teardown to shutdown, add reconnect tests
alan-george-lk a2e6a9e
Cleanup weird test
alan-george-lk e8569e3
Merge branch 'main' of github.com:livekit/client-sdk-cpp into alan/bu…
alan-george-lk 7534b22
Removing shutdown from EOS event
alan-george-lk 55299c3
Address unrecoverable case
alan-george-lk 8416551
Now test against rust fix for EOS
alan-george-lk a6a8d20
Cleaner log lines
alan-george-lk 5edbf42
Merge branch 'main' of github.com:livekit/client-sdk-cpp into alan/bu…
alan-george-lk 8bc9a2a
Use latest rust-sdks main for upstream fix
alan-george-lk 5cb2bce
Merge branch 'main' of github.com:livekit/client-sdk-cpp into alan/bu…
alan-george-lk c243cf7
Use latest rust branch that will be merged soon
alan-george-lk c33a190
Additional race fix
alan-george-lk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule client-sdk-rust
updated
from dad794 to 0efc54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| /* | ||
| * Copyright 2026 LiveKit | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| #pragma once | ||
|
|
||
| #include <gtest/gtest.h> | ||
|
|
||
| #include <cstdint> | ||
| #include <string> | ||
|
|
||
| #include "ffi.pb.h" | ||
| #include "ffi_client.h" | ||
|
|
||
| namespace livekit::test { | ||
|
|
||
| /// Serializes and dispatches a synthetic FFI event through the real callback entry point. | ||
| /// Defined in this header for use across different tests. | ||
| inline void emitFfiEvent(const proto::FfiEvent& event) { | ||
| std::string bytes; | ||
| ASSERT_TRUE(event.SerializeToString(&bytes)); | ||
| ffiEventCallback(reinterpret_cast<const std::uint8_t*>(bytes.data()), bytes.size()); | ||
| } | ||
|
|
||
| } // namespace livekit::test |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.