Skip to content
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

Add server push functionality #51

Open
finnje opened this issue Apr 14, 2021 · 2 comments
Open

Add server push functionality #51

finnje opened this issue Apr 14, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@finnje
Copy link

finnje commented Apr 14, 2021

I've noticed when I run inn fetch <interface> that communication between the two associated peers doesn't work until I run inn fetch <interface> on both peers. That's a little cumbersome and would be nice to handle that automatically via the innernet-server.

@mcginty mcginty added the enhancement New feature or request label Apr 15, 2021
@mcginty
Copy link
Collaborator

mcginty commented Apr 16, 2021

Unfortunately there's no way to remotely trigger an inn fetch on other peers from the server, since there's no push mechanism (clients poll the server, by default, every 60 seconds). You can always override the frequency with systemctl edit though, we do that often.

I'm going to rename this issue to "Add server push functionality" since I think that's what you're asking for here, where clients would establish a long-running connection with the server and receive pushed state updates instead of polling for them.

@mcginty mcginty changed the title Adding association should run inn fetch on affected endpoints Add server push functionality Apr 16, 2021
@finnje
Copy link
Author

finnje commented Apr 16, 2021

Sounds good! Thanks for the tip on editing the default poll time, that should be a decent workaround for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants