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

Reply via email to