Skip to content

Conversation

@metux
Copy link
Contributor

@metux metux commented Nov 7, 2025

Move this to a little function (which also has a better name now)
inside the already platform specific ossock.c

Signed-off-by: Enrico Weigelt, metux IT consult info@metux.net

todo = notWritten;
}
else if (ETEST(errno)
#ifdef EMSGSIZE /* check for another brain-damaged OS bug */
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you keep this and the comment, if we're keeping the EMSGSIZE test?

Also, what os fails with EMSGSIZE on tcp/unix socket reads?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed that entirely. couldn't find any OS (supported by us) that's returning EMSGSIZE on stream sockets.

Move this to a little function (which also has a better name now)
inside the already platform specific ossock.c

Also removing the EMSGSIZE check: we're using TCP or local unix
socket, so EMSGSIZE is never returned.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
@metux metux force-pushed the pr/os-replace-etest-macro-by-ossock-wouldblock-_2025-11-07_16-07-44 branch from 83e1da5 to 8f039cc Compare November 7, 2025 18:18
metux added a commit that referenced this pull request Nov 7, 2025
metux added a commit that referenced this pull request Nov 7, 2025
@metux metux merged commit b0b9a62 into master Nov 8, 2025
@metux metux deleted the pr/os-replace-etest-macro-by-ossock-wouldblock-_2025-11-07_16-07-44 branch November 8, 2025 09:46
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