Re: MySqlConnection doesn't close
Posted by: Reggie Burnett
Date: November 09, 2006 09:52AM

Patrik

Using the connection string you gave and making sure there are zero connections currently on the mysql server, try this code:

for (int i=0; i < 20; i++)
{
MySqlConnection c = new MySqlConnection(connectionString);
c.Open();
c.Close();
}

after running this code, do a show processlist on the server and see how many connections you have. You should have 10 (min pool size) even though you opened 20 connections.

Options: ReplyQuote


Subject
Written By
Posted
November 07, 2006 02:56PM
Re: MySqlConnection doesn't close
November 09, 2006 09:52AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.