May 20, 2026
3:24 a.m.
Oh another way ofc is that maybe we should not extract request socket from select sockets at all and use some pre-created special AFD socket.
To summarize some off-list discussion, this is roughly what native seems to do, at least for select(). But WSAPoll() behaves differently; you can mix valid and invalid sockets and it'll return success. There's also some other odd subtle differences in the existing WSAPoll() tests. Getting this right seems like a rabbit hole and I'm not convinced it's worthwhile. This merge request is probably fine enough. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10894#note_140740