In the documentation for PgSqlConnection.ClearPool static method (https://www.devart.com/dotconnect/postg ... rPool.html) it says "Pool is automatically cleared if a connection is idle for some time or closed by the server." Is there anyway to set the "idle" time to automatically clear the connections? I know there is a ConnectionLifetime setting, but that sounds like it will only close the connection if it is re-used past that timeout.
My goal is to have pooled connections closed automatically if they have been idle for a pre-set amount of time, (2 minutes, for example). I have not been able to find a way to do this with the DevArt pooling settings. Am I missing something? (Or misunderstanding how something works?)
Pooling question
-
- Devart Team
- Posts: 2420
- Joined: Wed 02 Nov 2011 09:44
Re: Pooling question
dotConnect for PostgreSQL does not support such feature. There is no such possibility to automatically close connections which are idle for some specific time.