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

btl tcp: fix bind() failure on MacOS #5825

Closed
wants to merge 1 commit into from

Conversation

bwbarrett
Copy link
Member

Fix a failure in binding the initiating side of a connection
on MacOS. MacOS doesn't like passing the size of the storage
structure (sockaddr_storage) instead of the expected size of
the structure (sockaddr_in or sockaddr_in6), which was causing
bind() failures. This patch simply changes the structure size
to the expected size.

Signed-off-by: Brian Barrett [email protected]

Fix a failure in binding the initiating side of a connection
on MacOS.  MacOS doesn't like passing the size of the storage
structure (sockaddr_storage) instead of the expected size of
the structure (sockaddr_in or sockaddr_in6), which was causing
bind() failures.  This patch simply changes the structure size
to the expected size.

Signed-off-by: Brian Barrett <[email protected]>
@bwbarrett bwbarrett added this to the v4.0.0 milestone Oct 2, 2018
@bwbarrett bwbarrett requested review from jsquyres and bosilca October 2, 2018 15:48
@bwbarrett bwbarrett closed this Oct 2, 2018
bosilca added a commit to bosilca/ompi that referenced this pull request Oct 2, 2018
Get Brian's patch from open-mpi#5825 and his log message:
Fix a failure in binding the initiating side of a connection
on MacOS. MacOS doesn't like passing the size of the storage
structure (sockaddr_storage) instead of the expected size of
the structure (sockaddr_in or sockaddr_in6), which was causing
bind() failures. This patch simply changes the structure size
to the expected size.

Add a more clear error message in debug mode.

Signed-off-by: George Bosilca <[email protected]>
jsquyres pushed a commit to jsquyres/ompi that referenced this pull request Oct 2, 2018
Get Brian's patch from open-mpi#5825 and his log message:
Fix a failure in binding the initiating side of a connection
on MacOS. MacOS doesn't like passing the size of the storage
structure (sockaddr_storage) instead of the expected size of
the structure (sockaddr_in or sockaddr_in6), which was causing
bind() failures. This patch simply changes the structure size
to the expected size.

Add a more clear error message in debug mode.

Signed-off-by: George Bosilca <[email protected]>
(cherry picked from commit 9164e26)
@bwbarrett bwbarrett deleted the bugfix/5815 branch May 8, 2020 00:17
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.

1 participant