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

Reduce number of interfaces scanned for UPnP gateways #4904

Merged

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Sep 12, 2024

Identify the Bug or Feature request

Addresses #4902

Description of the Change

This changes the UPnP discovery logic to avoid network interfaces with no associated IP address. The goal is to reduce the number of devices that the UPnP scan has to wait for.

An additional change is to remove the dialogs displaying the specific interfaces in favour of a static glass pane that indicates UPnP setup is ongoing. The interfaces will still be logged, so they can be found for future reference if needed.

On my main Windows machines, this reduced the number of interfaces from ~12 to 2, with both remaining interfaces being legitimate possibilities for UPnP.

Possible Drawbacks

None

Documentation Notes

N/A

Release Notes

  • Fixed a bug where UPnP would scan extraneous network interfaces on Windows.

This change is Reviewable

The dialogs were unstylish and intrusive, constantly stealing focus for no reason. While the glass pane does not mention
the specific interfaces being scanned, they will be located in the logs in case it ever matters.
@kwvanderlinde kwvanderlinde self-assigned this Sep 12, 2024
@kwvanderlinde kwvanderlinde added bug performance A performance or quality of life improvement labels Sep 12, 2024
@kwvanderlinde kwvanderlinde marked this pull request as ready for review September 12, 2024 16:14
Copy link
Collaborator

@thelsing thelsing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kwvanderlinde kwvanderlinde changed the title Bugfix/4902 upnp interfaces Reduce number of interfaces scanned for UPnP gateways Sep 12, 2024
@cwisniew cwisniew merged commit a2923e4 into RPTools:release-1.15 Sep 13, 2024
4 checks passed
@kwvanderlinde kwvanderlinde deleted the bugfix/4902-upnp-interfaces branch September 13, 2024 15:06
github-merge-queue bot pushed a commit that referenced this pull request Sep 19, 2024
…es--reapply-to-develop

Reduce number of interfaces scanned for UPnP gateways (reapply #4904)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug performance A performance or quality of life improvement
Projects
Development

Successfully merging this pull request may close these issues.

3 participants