select() returns WSAENOTSOCK but getsockopt() is successful
I have an application facing the below problem occassionally at a
customer site running Win 2003.
select() fails with WSAENOTSOCK.
The application has recovery processing code which checks all the
sockets before adding them back for the select() call.
The check is done using getsockopt() with SO_TYPE and it is successful
for all the sockets being adding to the select().
The next select also fails and this happens continuously for thousands
This has been seen in couple of machines and i do not have access to
Please let me know if anybody has any ideas.