https://bugs.winehq.org/show_bug.cgi?id=32802
--- Comment #10 from Sagawa sagawa.aki+winebugs@gmail.com --- Created attachment 60457 --> https://bugs.winehq.org/attachment.cgi?id=60457 fix FIONREAD behaviour
Could you try this patch? It should fix the issue.
I found out an interesting behavior about ioctl(FIONREAD). On Linux, calling ioctl(FIONREAD) to listening socket is failure with EINVAL. This action is intentional as described in tcp(7). However, it succeeds on native. This patch makes ioctl(FIONREAD) to listening socket succeeds on Wine.