Repository navigation
fix: Handle empty disco#items responses - #2253
Closed
MichaelDim02 wants to merge 1 commit into
Closed
MichaelDim02 wants to merge 1 commit into
MichaelDim02 wants to merge 1 commit into
Conversation
Signed-off-by: Michail Konstantinos Dimopoulos <mk@mcdim.xyz>
Member
|
I just started to work on that part of the code and pushed a PR one day before your opened this one. Please take a look at #2251 It's not quite finished yet. I still need to check a couple of things before merging. |
Member
|
Thanks for your effort. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Connection initialization stalls because of an early return on empty disco#items responses.
I encountered this issue when attempting to add a room as a bookmark, which would report success but no bookmark was actually added, with the logs reporting an empty storage field sent to the server. Apparently the bookmarks table was never initialized, as bookmark_request() was never triggered. I traced this to the early exit on _disco_items_result_handler().
This patch fixes the immediate user-facing issue of adding persistent bookmarks. However, merely calling sv_ev_connection_features_received(); on an empty table may not be a complete compensation for initialization, and whether initialization order is respected needs to be examined. Long term, a shared handler may be more appropriate. I decided to leave that decision up to the maintainers.
How to test the functionality