Gajim fails to send keepalives with high CPU usage
I am experiencing random disconnects with an Openfire server that has an idle timeout of 6 minutes. Gajim is set to send keepalives every 55 seconds (ie. default, it actually sends them every 56 seconds apparently).
One cause I have identified is that high CPU usage prevents the keepalives from being sent on time.
Here is a log while running a compile job with a nice of 1:
1199657219.65: Connected to \<server>, storing initial clock offset
+ 73.32: Sending keepalive to \<server>
+ 100.21: Sending keepalive to \<server>
+ 56.07: Sending keepalive to \<server>
+ 76.23: Sending keepalive to \<server>
+ 68.21: Sending keepalive to \<server>
+ 406.09: Disconnected from \<server>
+ 11.63: Connected to \<server>
+ 135.40: Sending keepalive to \<server>
+ 361.26: Disconnected from \<server>