make task tcp client use heartbeat for keep alive