gaim/gaim

This is a temporary fix for the rate limit problems.
oldstatus
2005-10-15, Mark Doliner
649cffd7a416
Parents 84c84f737435
Children 51fd1cc279d8
This is a temporary fix for the rate limit problems.

Cause: Gaim uses the SNAC 0x0004/0x0015 to fetch the away message
of each user in your buddy list. Previously this SNAC was in a
"rate class" that had an extremely lenient rate limit. Gaim would
fetch a new away message at most every 1.3 seconds. AOL recently
moved this SNAC to be in the same rate class as most of the other
SNACs (send IM, add buddy, connect to chat room, etc.) My temporary
fix is to bump this delay to 10 seconds.

We copied this functionality from iChat, and it looks like they
might actually be having the same problem (but I didn't even take
a packet capture to verify). If this is the case, AOL is really
stupid.

Possibly better fixes:
* Use the rate information to delay packets so that we never hit
a rate limit
* There may be a different SNAC that is now more leniently rate
limited. Possibly 0x0002/0x0005 or 0x0004/0x0006.
--- a/src/protocols/oscar/oscar.c Tue Oct 11 00:35:48 2005 -0400
+++ b/src/protocols/oscar/oscar.c Sat Oct 15 12:50:30 2005 -0400
@@ -5063,7 +5063,7 @@
* too quickly.
*/
if (od->getinfotimer == 0)
- od->getinfotimer = gaim_timeout_add(1200, gaim_reqinfo_timeout_cb, sess);
+ od->getinfotimer = gaim_timeout_add(10000, gaim_reqinfo_timeout_cb, sess);
return 1;
}