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

UPnP port mapping should be regularly attempted, not only at startup #4975

Open
attila-lendvai opened this issue Feb 3, 2025 · 0 comments
Open

Comments

@attila-lendvai
Copy link
Collaborator

Summary

my upnp service may become unresponsive (miniupnp in openwrt). when i notice i restart it, but seems like i also need to restart all my bee nodes, because it seems to only attempt (?) setting up the upnp mapping at startup.

i waited about 10 mintes only before restarting the bee nodes.

Motivation

make bee nodes' external reachability more reliable.

Implementation

i'm no expert neither of golang nor upnp.

maybe it's as simple as moving the setup code from the initialization into a periodic thread?

Drawbacks

i'm not sure whether the upnp API is smart enough for such a use-case (i.e. gracefully handling when the same port map is requested periodically).

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

No branches or pull requests

1 participant