Repository navigation
fix(connlib): only emit route changes from disabled_resource if routes actually changed - #6424
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
conectado
commented
Aug 23, 2024
Contributor
Author
There was a problem hiding this comment.
@thomaseizinger I'd like your input on this, we can either make set_disabled_resources return something to indicate that the routes must be updated or we do it from here, that's not tested for now.
Member
There was a problem hiding this comment.
This is fine for now. We are gonna redesign these events later.
jamilbk
approved these changes
Aug 23, 2024
thomaseizinger
approved these changes
Aug 23, 2024
thomaseizinger
left a comment
Member
There was a problem hiding this comment.
I think this should have a changelog entry.
conectado
enabled auto-merge
August 23, 2024 01:44
…s actually changed
conectado
force-pushed
the
fix/connlib/dont-over-emit-on-update-routes
branch
from
August 23, 2024 01:46
13f72d6 to
030aeba
Compare
thomaseizinger
approved these changes
Aug 23, 2024
Member
There was a problem hiding this comment.
I think we should include the same one on Android, no?
Contributor
Author
There was a problem hiding this comment.
It's more of a theoretical thing in android right now, I think, we never saw it.
Co-authored-by: Thomas Eizinger <thomas@eizinger.io> Signed-off-by: Gabi <gabrielalejandro7@gmail.com>
This branch was successfully deployed
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.
Right now, whenever a connection is established we update the site status.
In order to do that, we call
on_update_resources, whenon_update_resourcesis called this in turn callsset_disabled_resources, since we apply from the application side the "disabled" given the current resources.set_disabled_resourcescurrently, always callon_update_routes, which causes connectivity issues on Android and MacOS, since the packets aren't correctly routed when the routes are changed.To fix this we make
set_disabled_resourcesonly emit the routes when they have actually changed.Fixes: #6387.