public static Driver Create(MySqlConnectionStringBuilder settings) { Driver d = new Driver(settings); //this try was added as suggested fix submitted on MySql Bug 72025, socket connections are left in CLOSE_WAIT status when connector fails to open a new connection. //the bug is present when the client try to get more connections that the server support or has configured in the max_connections variable. try { d.Open(); } catch { d.Dispose(); throw; } return d; }