You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling stream_select() with a stream socket, this will assert in debug binaries, which makes it inconvenient to test some applications.
I'm not sure what could be done to address this. There doesn't seem to be an easy way to ask the CRT if the fd is a file resource.
According to ChatGPT getsockopt() and checking for WSAENOTSOCK might be a better way to check for sockets, but I haven't tried this myself.
Hoping someone with more expertise about the depths of Windows can suggest something.