Commit eab25fc9 authored by Philipp Hörist's avatar Philipp Hörist

TCP: Add debug logging for keepalive timer

parent 857ab2bb
......@@ -143,11 +143,13 @@ class TCPConnection(Connection):
def _remove_keepalive_timer(self):
if self._keepalive_id is not None:'Remove keepalive timer')
self._keepalive_id = None
def _renew_keepalive_timer(self):
self._remove_keepalive_timer()'Add keepalive timer')
self._keepalive_id = GLib.timeout_add_seconds(5, self._send_keepalive)
def _send_keepalive(self):
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment