sending keepalive using a timer