Hello: Update of /cvsroot/firebird/NETProvider/NETProvider_17/source/FirebirdSql.Data. Firebird In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23541
Modified Files: FbConnectionPool.cs Log Message: 2005-11-12 Carlos Guzman Alvarez * FirebirdSql\Data\FirebirdClient\FbConnectionPool. cs: - Try to fix issue with connection pooling reported in the devel list. Index: FbConnectionPool.cs =================================================================== RCS file: /cvsroot/firebird/NETProvider/NETProvider_17/source/FirebirdSql. Data.Firebird/FbConnectionPool.cs,v retrieving revision 1.24 retrieving revision 1.25 diff -b -U3 -r1.24 -r1.25 --- FbConnectionPool.cs 11 Oct 2005 17:56:49 -0000 1.24 +++ FbConnectionPool.cs 12 Nov 2005 22:04:20 -0000 1.25 @@ -275,8 +275,20 @@ lock (this.syncObject) { + // 1. Try ToString Get a connection from the unlocked connection list. + lock (this.unlocked.SyncRoot) + { + newConnection = this. GetConnection(); + if (newConnection != null) + { + return newConnection; + } + } + + // 2. Check if we have reached the max number of allowed connections this.CheckMaxPoolSize(); + // 3. Try ToString Get a connection from the unlocked connection list. lock (this.unlocked. SyncRoot) { newConnection = this.GetConnection(); @@ -286,6 +298,7 @@ } } + // 4. In any other case create a new connection newConnection = this.Create(); // Set connection pooling settings to the new connection -- Best regards Carlos Guzmán Álvarez Vigo-Spain ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider