Use the version of keepAlive which can be set externally