Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Connector/Net Timeout problem. (1 reply)

$
0
0
We have experience a strange timeout behavor of mysql connector. We are using Connector/Net 6.1.3, and the server is 5.1.41 on ubuntu 10.04 LTS.

When we issue a query that return large volume of records, it will only return some of the records, instead of throw the timeout exception.

We see this on both MySqlDataAdapter and MySqlDataReader using following bare bone code.

using (MySqlConnection con = new MySqlConnection(connectionString))
{
MySqlCommand cmd = con.CreateCommand();
cmd.CommandText = sql;
cmd.CommandTimeout = 10;
MySqlDataAdapter adapter = new MySqlDataAdapter(cmd);
adapter.Fill(ds);

// con.Open();
// MySqlDataReader reader = cmd.ExecuteReader(CommandBehavior.CloseConnection);
// while (reader.Read())
// {
// result.Add(reader.GetString(0));
// }
// reader.Close();
}

Is this a bug in mysql connector?

We tried the mysql connector 6.2.3 and it now throws the exception, however, the time it takes to throw the exception is much longer ( 6 minutes ) than what we set ( 10 seconds) .

Can any shed some light on this? Really appreciate. This has been blocking us for few days already.

Thanks

Michael

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>