Does it work properly (is it really closed when CloseConnection is called)?
I've got a strange behavior in the production environment (postgresql 9.2.1). In case I've switched the flag to true, after about 2 minutes I've got a problem with getting the connection from the pool.
an error has occurred during retrieving lock information. Timeout while getting a connection from pool.;Timeout while
getting a connection from pool.StackTrace: at Npgsql.NpgsqlConnectorPool.RequestPooledConnector(NpgsqlConnection
Connection) in C:\projects\Npgsql2\src\Npgsql\NpgsqlConnectorPool.cs:line 228
at Npgsql.NpgsqlConnection.Open() in C:\projects\Npgsql2\src\Npgsql\NpgsqlConnection.cs:line 543
It's probably the driver fault (I've already requested a ticket at pgfoundry), but just want to ensure that its correctly (am I doing it ok) handled from LLBLGen site. I've tested it with npgsql 2.0.12 as well as 2.0.11.93 and the problem only exists, when I set
adapter.KeepConnectionOpen = true;
Regards,
MiloszeS