http://bugs.winehq.org/show_bug.cgi?id=30020
--- Comment #19 from Witold Baryluk baryluk-winehq@smp.if.uj.edu.pl 2012-04-23 21:47:17 CDT --- (In reply to comment #17)
(In reply to comment #16)
Still few checks are missing, like making sure optlen == sizeof(LINGER)).
Are you sure this is required? When I fixed some part of that code a few months ago I remember testing this. The buffer needs to be at least sizeof(LINGER), doesn't need to be exact equal. Maybe I'm wrong, you can always play with tests and crosstest in windows, it's very helpful. See the current tests in: http://source.winehq.org/source/dlls/ws2_32/tests/sock.c#L1137
Probably not required, but cleary for some reason setsockopt fails.