comparison libpurple/protocols/oscar/bstream.c @ 22717:979a81468e19

All SNACs on FLAP channel 2 except in the auth family are now sent through flap_connection_send_snac() instead of flap_connection_send(). This allows them to be tallied into the rate limiting calculations and to be throttled as necessary to prevent rate limiting violations. This does fix the instantaneous disconnection seen with the addition of ICQ Status Notes support for people with many ICQ contacts with status notes on their buddy list. Unfortunately, we still request the ICQ Status Note many times per contact, so such people now may be rate limited for a significant period of time as they connect.
author Evan Schoenberg <evan.s@dreskin.net>
date Thu, 24 Apr 2008 11:10:03 +0000
parents 44b4e8bd759b
children 531922f4ea2a
comparison
equal deleted inserted replaced
22715:80c87908ff1d 22717:979a81468e19
43 bs->offset = 0; 43 bs->offset = 0;
44 44
45 return 0; 45 return 0;
46 } 46 }
47 47
48 void byte_stream_destroy(ByteStream *bs)
49 {
50 g_free(bs->data);
51 }
52
48 int byte_stream_empty(ByteStream *bs) 53 int byte_stream_empty(ByteStream *bs)
49 { 54 {
50 return bs->len - bs->offset; 55 return bs->len - bs->offset;
51 } 56 }
52 57