http://bugs.winehq.org/show_bug.cgi?id=5774
------- Additional Comments From damjan.jov@gmail.com 2007-18-05 01:29 ------- Created an attachment (id=6340) --> (http://bugs.winehq.org/attachment.cgi?id=6340&action=view) poll/recvfrom test
I was asked by Alexandre to present some evidence for the correctness of this patch, so this seems like as good a place as any to post what I found.
The theory being tested is that when you are polling a non-blocking datagram socket, and a datagram with a bad checksum arrives, the poll will wake up and report that the socket is readable, but reading will fail with EAGAIN.
This code does the polling and receiving part of the test. Compile this and run it on one computer.