set keepalive to 5 seconds