[pgsqlclient-checkins] pgsqlclient_10/PostgreSql.Data.PgSqlClient/source PgConnectionPool.cs,1.2,1.3
Status: Inactive
Brought to you by:
carlosga_fb
From: <car...@us...> - 2003-12-19 11:51:26
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source In directory sc8-pr-cvs1:/tmp/cvs-serv25048 Modified Files: PgConnectionPool.cs PgDbConnection.cs Log Message: Fixed bug in Connection Pooling Index: PgConnectionPool.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgConnectionPool.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PgConnectionPool.cs 14 Dec 2003 15:06:50 -0000 1.2 --- PgConnectionPool.cs 19 Dec 2003 11:51:23 -0000 1.3 *************** *** 223,227 **** if (connection.Lifetime != 0) { ! if ((now - connection.Created) > connection.Lifetime) { unlocked.Remove(connection); --- 223,227 ---- if (connection.Lifetime != 0) { ! if ((now - connection.Created) >= connection.Lifetime) { unlocked.Remove(connection); Index: PgDbConnection.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgDbConnection.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** PgDbConnection.cs 14 Dec 2003 15:06:50 -0000 1.4 --- PgDbConnection.cs 19 Dec 2003 11:51:23 -0000 1.5 *************** *** 159,162 **** --- 159,163 ---- case "connection lifetime": lifetime = Int32.Parse(element.Groups[2].Value.Trim()); + lifetime *= TimeSpan.TicksPerSecond; break; |