Make sure keepAlive time fn has correct context.