Increase the amount of time a pool spends in the garbage list
authorAlejandro Perez <alejandro.perez.mendez@gmail.com>
Tue, 9 May 2017 12:21:44 +0000 (14:21 +0200)
committerAlejandro Perez <alejandro.perez.mendez@gmail.com>
Tue, 9 May 2017 12:32:21 +0000 (14:32 +0200)
Under specific circumstances (e.g high authentication load) a client might keep using an old pool since the socket did not expire. 60 seconds seems too low.
Increased to make sure we do not delete it while it is still being used.

src/main/realms.c

index 2a047e0..d1fafcf 100644 (file)
@@ -1156,7 +1156,7 @@ void realm_pool_free(home_pool_t *pool)
        }
 
        this->next = NULL;
-       this->when = now + 60;
+       this->when = now + 300;
        this->pool = pool;
        pthread_mutex_unlock(&pool_free_mutex);
 }