return-value check of setsockopt ?
Baesken, Matthias
matthias.baesken at sap.com
Tue Nov 14 15:16:29 UTC 2023
Hi, while looking at some net/nio coding, I noticed that at a lot of places the return value of setsockopt is checked :
https://github.com/search?q=repo%3Aopenjdk%2Fjdk+%22setsockopt%22&type=code
but the check is omitted at some places .
Is this okay, because the call can fail for various reasons , see for example :
https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-setsockopt
Thanks, Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/net-dev/attachments/20231114/e9aab1e9/attachment.htm>
More information about the net-dev
mailing list