-
Notifications
You must be signed in to change notification settings - Fork 60
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
Fix deadlocked engine in RPC #532
Conversation
it seems like you haven't added any nanpa changeset files to this PR. if this pull request includes changes to code, make sure to add a changeset, by writing a file to
refer to the manpage for more information. |
Interesting. Will take a look! |
The change you made (d7c8cda) seems like a good fix to me 👍 |
What caught my attention in a different context is the rust-sdks/livekit/src/room/mod.rs Line 649 in fea7557
If we |
@typester I'm not sure about that, maybe @theomonnom knows |
yeah, it is expected for engine events to be processed one by one (keeping the order) |
There's an issue where if you're busy handling an incoming rpc request, additional engine events will not be processed. this causes a deadlock essentially if you have nested RPC, since the incoming acks won't be processed, but also probably gums up plenty of other features of livekit...
this solution is probably not correct, but it works and i included an example. need help @typester !