Mercurial > pidgin.yaz
changeset 17931:b1f9a3f5c0d0
Time the time between keep alives (I get 124 seconds).
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Wed, 04 Jul 2007 21:35:42 +0000 |
parents | d0c8b7748065 |
children | 76b68a9f9036 |
files | libpurple/protocols/myspace/myspace.c libpurple/protocols/myspace/myspace.h |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c Wed Jul 04 21:21:25 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.c Wed Jul 04 21:35:42 2007 +0000 @@ -1543,6 +1543,9 @@ * just happened here), msimprpl will appear to be connected forever, while * other plugins (oscar, etc.) will time out. Msimprpl should timeout too. */ purple_debug_info("msim", "msim_process: got keep alive\n"); + purple_debug_info("msim", "msim_process: last ka was %d s ago\n", + time(NULL) - session->last_ka); + session->last_ka = time(NULL); return TRUE; } else { msim_unrecognized(session, msg, "in msim_process");
--- a/libpurple/protocols/myspace/myspace.h Wed Jul 04 21:21:25 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.h Wed Jul 04 21:35:42 2007 +0000 @@ -162,6 +162,8 @@ guint rxoff; /**< Receive buffer offset */ guint next_rid; /**< Next request/response ID */ time_t last_comm; /**< Time received last communication */ + + time_t last_ka; } MsimSession; /* Check if an MsimSession is valid */