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

Fixed Windows UDP unicast only working on a single network interface #345

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

Guacimo
Copy link
Contributor

@Guacimo Guacimo commented Jul 17, 2024

Removed the logic that tries to bind all interfaces to a UDP socket on Windows. I do not understand why this would be necessary. The result seems to be that the socket binds to the earliest listed interface it can bind to and fails all other interfaces. This means that RustDDS fails to send unicast UDP messages to any devices that are not available to that first interface. Binding to "0.0.0.0" works on Windows so I removed the conditional compilation syntax. The fact that this code was present leads me to believe that this fixed something earlier, right now I cannot determine what this was.

Removed the logic that tries to bind all interfaces to a UDP socket on
Windows. I do not understand why this would be necessary. The result
seems to be that the socket binds to the earliest listed interface it
can bind to and fails all other interfaces. Binding to "0.0.0.0" works
on Windows so I removed the conditional compilation syntax.
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.27%. Comparing base (28ed26f) to head (1fee674).
Report is 143 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #345      +/-   ##
==========================================
- Coverage   73.53%   71.27%   -2.27%     
==========================================
  Files          94       93       -1     
  Lines       19845    18504    -1341     
==========================================
- Hits        14594    13189    -1405     
- Misses       5251     5315      +64     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jhelovuo jhelovuo merged commit 2d7f20a into Atostek:master Jul 30, 2024
4 of 5 checks passed
@jhelovuo
Copy link
Member

Thank you for the contribution.

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

Successfully merging this pull request may close these issues.

3 participants