Mercurial > pidgin
diff src/protocols/oscar/conn.c @ 13256:7ead7b8aea63
[gaim-migrate @ 15622]
Remove the latency code because
1. It uses sleep, which would block everything if it actually worked
2. It doesn't work because we don't use AIM_TX_IMMEDIATE instead of
AIM_TX_QUEUED
3. I'm going to be getting rid of AIM_TX_IMMEDIATE and AIM_TX_QUEUED
and will be using a GaimCircBuffer for transmission at all times
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 12 Feb 2006 22:21:08 +0000 |
parents | e9802db22b06 |
children | 3128ef5250ad |
line wrap: on
line diff
--- a/src/protocols/oscar/conn.c Sun Feb 12 22:15:12 2006 +0000 +++ b/src/protocols/oscar/conn.c Sun Feb 12 22:21:08 2006 +0000 @@ -241,7 +241,6 @@ conn->type = -1; conn->seqnum = 0; conn->lastactivity = 0; - conn->forcedlatency = 0; conn->handlerlist = NULL; sess->oscar_connections = g_list_prepend(sess->oscar_connections, conn); @@ -359,7 +358,6 @@ conn->seqnum = src->seqnum; conn->internal = src->internal; conn->lastactivity = src->lastactivity; - conn->forcedlatency = src->forcedlatency; conn->sessv = src->sessv; aim_clonehandlers(sess, conn, src); @@ -404,33 +402,6 @@ } /** - * Set a forced latency value for connection. Basically causes - * @newval seconds to be spent between transmits on a connection. - * - * This is my lame attempt at overcoming not understanding the rate - * limiting. - * - * XXX: This should really be replaced with something that scales and - * backs off like the real rate limiting does. - * - * @param conn Conn to set latency for. - * @param newval Number of seconds to force between transmits. - * @return Returns -1 if the connection does not exist, zero otherwise. - */ -int -aim_conn_setlatency(OscarConnection *conn, int newval) -{ - - if (!conn) - return -1; - - conn->forcedlatency = newval; - conn->lastactivity = 0; /* reset this just to make sure */ - - return 0; -} - -/** * Determine if a connection is connecting. * * @param conn Connection to examine.