Skip to content

Conversation

@wdoekes
Copy link
Member

@wdoekes wdoekes commented Sep 2, 2016

In 4aa361d, the SOCK_ADDR_SIZE macro was removed and in bind(),
connect() and sendto() calls, it was replaced with sizeof(struct
sockaddr_storage). Unfortunately some systems (OSX) refuse to work
with an inexact (too large) addrlen.

Thanks to @sjthomason for reporting and bisecting the cause.
Closes #246.

In 4aa361d, the SOCK_ADDR_SIZE macro was removed and in bind(),
connect(), getnameinfo() and sendto() calls, it was replaced with
sizeof(struct sockaddr_storage). Unfortunately some systems (OSX) refuse
to work with an inexact (too large) addrlen.

Thanks to @sjthomason for reporting, bisecting the cause and reviewing
the fix. Closes #246.
@wdoekes wdoekes force-pushed the fix/bad-addrlen-on-osx-246 branch from f9d207c to 10b046c Compare September 5, 2016 14:58
@pbertera
Copy link
Contributor

Worked for me in OSX 10.10.5.

Thanks,

@wdoekes wdoekes merged commit 957e23c into master Oct 1, 2016
@wdoekes wdoekes deleted the fix/bad-addrlen-on-osx-246 branch October 1, 2016 10:15
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