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

net: context: Do not check our own ports #72595

Merged

Conversation

jukkar
Copy link
Member

@jukkar jukkar commented May 10, 2024

There is no need to check our own context when going through the used ports in the system. This prevents error when binding in some corner cases.

Fixes #72035

There is no need to check our own context when going through
the used ports in the system. This prevents error when binding
in some corner cases.

Fixes zephyrproject-rtos#72035

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
@jukkar
Copy link
Member Author

jukkar commented May 10, 2024

@JordanYates please give it a try, seems to work in my test setup which was different from yours.

Copy link
Collaborator

@JordanYates JordanYates left a comment

Choose a reason for hiding this comment

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

Fixes my reproduction

@nashif nashif merged commit 1d7970b into zephyrproject-rtos:main May 14, 2024
26 checks passed
@jukkar jukkar deleted the fix/72035/connect-duplicate-port branch May 15, 2024 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

net: net_context: zsock_connect can error out due to duplicate ports
6 participants