Re: [gnome-db] Provider doesn't close connections. Bug or feature?



On Sun, 2002-01-13 at 12:59, Gonzalo Paniagua Javier wrote:
> 	Hi!
> 
> 	When testing the postgres provider I've seen that no one calls
> 	gda_postgres_provider_connection_close(). So if under the same
> 	provider instance I run several times gda-test, I get one opened
> 	connection to the back-end for each run.
> 
> 	I've been trying to guess where is the problem
> 	(gda-connection.c, gda-server-connection.c) but I have no idea
> 	about where the problem is.
> 
> 	Has this something to do with the work in progress with
> 	connection pooling?
> 
the problem was because the impl_Connection_close was expecting more
arguments than it was being passed. So, I've fixed that by adding a 'in
Client client' argument to the Connection::close method, and making the
client side use that extra parameter.

There are still something wrong, since the providers binaries don't
terminate when no more connections are open. But at least now, the DB
connection is correctly closed.

cheers
-- 
Rodrigo Moya <rodrigo gnome-db org> - <rodrigo ximian com>
http://www.gnome-db.org/ - http://www.ximian.com/

Note.- This message may or may not arrive to you. This is
because a lot of non-spammer's Static IP addresses are being
listed in MAPS antispam blacklists. So, please, do not use MAPS
blacklists or a lot of non-spam mail for you will be lost.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]