http://bugs.winehq.org/show_bug.cgi?id=12302
--- Comment #49 from Daniel Santos daniel.santos@pobox.com 2008-07-08 07:22:06 --- Created an attachment (id=14652) --> (http://bugs.winehq.org/attachment.cgi?id=14652) hack to work-around lotro client spam bug
(In reply to comment #48) hmm, too bad I didn't read your post earlier. I just implemented a cute little hack in dlls/ws2_32/socket.c that resolve the issue!! The only problem is that it's a hack and can't be put into the source tree, instead, lotro users will have to download the patch & compile the modified ws2_32.dll.so, etc. If you know how to do this with netfilter, that would work better. Here is what I found that works:
If the same packet is sent more than 2 times within a 83 millisecond time frame (1/12th of a second) then drop additional duplicates. After that time elapses, reset the counter (allow another 2 basically). Only for UDP packets Possibly we can restrict this to a few ports, 9002 & 9008 seem to be where this problem occurs, but I haven't tested that restriction.
Either way, I'm attaching the socket.c hack for this. Perhaps we can compile some binaries as well and post them to make it easier. I personally found it quite challenging to custom compile wine on an amd64 box (but it was my 1st attempt too)