# HG changeset patch # User Jeffrey Connelly # Date 1183584942 0 # Node ID b1f9a3f5c0d0daa1033251f07614c233ae1f536e # Parent d0c8b774806580fd866ef87c176bea99ded93038 Time the time between keep alives (I get 124 seconds). diff -r d0c8b7748065 -r b1f9a3f5c0d0 libpurple/protocols/myspace/myspace.c --- 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"); diff -r d0c8b7748065 -r b1f9a3f5c0d0 libpurple/protocols/myspace/myspace.h --- 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 */