http://bugs.winehq.org/show_bug.cgi?id=11621
--- Comment #16 from André H. nerv@dawncrow.de 2010-01-15 07:54:07 --- I dont know if its a behavior of wine+linux or just linux. On Windows, if you send SIOCATMARK per ioctl it returns 1, which seems to mean "urgent data in the buffer" On Wine+Linux it returns 0 for "normal data" The best way to fix that issue is to fix it in Wine. That behavior disturbs function select_result in Putty's file ./windows/winnet.c
I already added a testcase, its the test "expected a non-zero value" in function test_ioctlsocket in file http://source.winehq.org/source//dlls/ws2_32/tests/sock.c actually line 2480