[Bug 12302] Lord of the Rings: Shadows of Angmar unplayable due to high lag

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Jul 8 07:22:07 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=12302





--- Comment #49 from Daniel Santos <daniel.santos at 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)


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list