Send keepalive only if interval is greater than 0.