Set keepalive to true.