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

[DevServer] Investigate how to use localhost first on desktop #17757

Open
jeromelaban opened this issue Jul 29, 2024 · 1 comment
Open

[DevServer] Investigate how to use localhost first on desktop #17757

jeromelaban opened this issue Jul 29, 2024 · 1 comment
Assignees
Labels
area/hot-reload Categorizes an issue or PR as relevant to hot reload difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/enhancement New feature or request

Comments

@jeromelaban
Copy link
Member

What would you like to be added

Investigate how connect to localhost first to avoid many websocket errors on multi-homed devices.

Why is this needed

Connecting to localhost first would work for same-machine, then if it fails (e.g. remote development on a RPi) fallback to the rest of the known addresses.

We could also somehow prioritize addresses based on the "last known working", where the devserver could store the binding address of the last successful connection, then prioritize this one in a subsequent build. This would reduce the number of connection errors in Wasm and other targets and make "first-chance" debugging less annoying.

For which platform

No response

Anything else we need to know?

No response

@jeromelaban jeromelaban added kind/enhancement New feature or request triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. area/hot-reload Categorizes an issue or PR as relevant to hot reload and removed triage/untriaged Indicates an issue requires triaging or verification labels Jul 29, 2024
@dr1rrb
Copy link
Member

dr1rrb commented Aug 6, 2024

#17781 will make sure to prioritize the last known host. While it's not about connecting to localhost first, it will ensure to not cause lot of exception at startup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/hot-reload Categorizes an issue or PR as relevant to hot reload difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants